diff --git a/crates/diman_unit_system/src/codegen/storage_types.rs b/crates/diman_unit_system/src/codegen/storage_types.rs index 5a7b426..89c4b00 100644 --- a/crates/diman_unit_system/src/codegen/storage_types.rs +++ b/crates/diman_unit_system/src/codegen/storage_types.rs @@ -31,9 +31,6 @@ pub trait StorageType { /// For vector types, this represents the underlying storage of a /// single entry in the vector. fn base_storage(&self) -> &FloatType; - - fn module_name(&self) -> &TokenStream; - fn generate_constants(&self) -> bool; } impl StorageType for VectorType { @@ -44,14 +41,6 @@ impl StorageType for VectorType { fn base_storage(&self) -> &FloatType { &self.float_type } - - fn module_name(&self) -> &TokenStream { - &self.module_name - } - - fn generate_constants(&self) -> bool { - false - } } impl StorageType for FloatType { @@ -62,14 +51,6 @@ impl StorageType for FloatType { fn base_storage(&self) -> &FloatType { self } - - fn module_name(&self) -> &TokenStream { - &self.module_name - } - - fn generate_constants(&self) -> bool { - true - } } impl Codegen { diff --git a/crates/diman_unit_system/src/resolve/mod.rs b/crates/diman_unit_system/src/resolve/mod.rs index 9c97d7c..ace7061 100644 --- a/crates/diman_unit_system/src/resolve/mod.rs +++ b/crates/diman_unit_system/src/resolve/mod.rs @@ -1,7 +1,7 @@ mod error; mod ident_storage; -use std::{collections::HashMap, result::Result}; +use std::collections::HashMap; use proc_macro2::Span; use syn::Ident; diff --git a/crates/diman_unit_system/tests/compile_fail/resolver_partial_resolution.rs b/crates/diman_unit_system/tests/compile_fail/resolver_partial_resolution.rs index b8ee0f4..1122b2c 100644 --- a/crates/diman_unit_system/tests/compile_fail/resolver_partial_resolution.rs +++ b/crates/diman_unit_system/tests/compile_fail/resolver_partial_resolution.rs @@ -17,5 +17,5 @@ unit_system_internal!( fn main() { use crate::units::meters; - let l = 1.0 * meters; + let _ = 1.0 * meters; }