Skip to content

Commit

Permalink
fix warnings in new rust version
Browse files Browse the repository at this point in the history
  • Loading branch information
Tehforsch committed Feb 25, 2024
1 parent 011fbb5 commit 9546634
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 21 deletions.
19 changes: 0 additions & 19 deletions crates/diman_unit_system/src/codegen/storage_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand All @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion crates/diman_unit_system/src/resolve/mod.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ unit_system_internal!(

fn main() {
use crate::units::meters;
let l = 1.0 * meters;
let _ = 1.0 * meters;
}

0 comments on commit 9546634

Please sign in to comment.