Skip to content

Commit

Permalink
Remove part of num_traits usage
Browse files Browse the repository at this point in the history
  • Loading branch information
PENGUINLIONG committed Mar 13, 2024
1 parent cdbf5e4 commit 6005094
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion spirq-core/src/parse/instr.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//! SPIR-V instruction parser.
use anyhow::bail;
use num_traits::FromPrimitive;
use spirv::Op;
use std::{borrow::Borrow, fmt, ops::Deref};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@

out += [
"use anyhow::{bail, Result};",
"use num_traits::FromPrimitive;",
"use spirq_core::spirv::Op;",
"",
"fn unknown_decorate_parameter_index(decoration: u32, i: usize) -> Result<&'static str> {",
Expand Down
1 change: 0 additions & 1 deletion spirq-spvasm/src/generated/decorate_parameter_enum_type.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use anyhow::{bail, Result};
use num_traits::FromPrimitive;
use spirq_core::spirv::Op;

fn unknown_decorate_parameter_index(decoration: u32, i: usize) -> Result<&'static str> {
Expand Down
1 change: 0 additions & 1 deletion spirq/src/reflect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use std::collections::BTreeMap;
use std::convert::TryFrom;

use fnv::{FnvHashMap as HashMap, FnvHashSet as HashSet};
use num_traits::FromPrimitive;
use spirq_core::parse::Instrs;

use crate::{
Expand Down

0 comments on commit 6005094

Please sign in to comment.