diff --git a/spirq-core/src/parse/instr.rs b/spirq-core/src/parse/instr.rs index 28ca541..50d7934 100644 --- a/spirq-core/src/parse/instr.rs +++ b/spirq-core/src/parse/instr.rs @@ -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}; diff --git a/spirq-spvasm/scripts/generate_decorate_parameter_enum_type.py b/spirq-spvasm/scripts/generate_decorate_parameter_enum_type.py index 7f11299..af7c840 100644 --- a/spirq-spvasm/scripts/generate_decorate_parameter_enum_type.py +++ b/spirq-spvasm/scripts/generate_decorate_parameter_enum_type.py @@ -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> {", diff --git a/spirq-spvasm/src/generated/decorate_parameter_enum_type.rs b/spirq-spvasm/src/generated/decorate_parameter_enum_type.rs index 65fd2e9..b608ed6 100644 --- a/spirq-spvasm/src/generated/decorate_parameter_enum_type.rs +++ b/spirq-spvasm/src/generated/decorate_parameter_enum_type.rs @@ -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> { diff --git a/spirq/src/reflect.rs b/spirq/src/reflect.rs index f53a5f1..694da9f 100644 --- a/spirq/src/reflect.rs +++ b/spirq/src/reflect.rs @@ -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::{