Skip to content

Commit

Permalink
fix serde doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
Tehforsch committed Jan 22, 2024
1 parent 1710656 commit ddc50bb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/diman_unit_system/src/codegen/debug_trait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl Codegen {
})
.collect();
quote! {
let units_array = &[#units];
let units_array: &[#runtime_unit::<_>] = &[#units];
let units = #runtime_unit_storage::new(units_array);
}
}
Expand Down
2 changes: 1 addition & 1 deletion crates/diman_unit_system/src/codegen/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl Codegen {
use core::marker::PhantomData;
use std::str::SplitWhitespace;

use serde::de::{self};
use serde::de;

#[derive(Default)]
struct QuantityVisitor<S, const D: #dimension_type>(PhantomData<S>);
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
//! # #![allow(incomplete_features)]
//! # #![feature(generic_const_exprs, adt_const_params)]
//! # mod surround {
//! # use diman_unit_system::unit_system;
//! diman::unit_system!(
//! quantity_type Quantity;
//! dimension_type Dimension;
Expand Down

0 comments on commit ddc50bb

Please sign in to comment.