Skip to content

Commit

Permalink
Remove derived Debug implementation from $quantities and BaseUnits.
Browse files Browse the repository at this point in the history
Types are marker types that cannot be created and therefor cannot be printed.
Resolves #12.
  • Loading branch information
iliekturtles committed Apr 1, 2017
1 parent b7aa84e commit ad33d2a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ macro_rules! system {
}

$(#[$quantities_attr])*
#[derive(Clone, Copy, Debug)]
#[allow(missing_debug_implementations)]
#[derive(Clone, Copy)]
pub struct $quantities<$($symbol),+>
where $($symbol: $crate::typenum::Integer,)+ {
$($name: $crate::stdlib::marker::PhantomData<$symbol>),+
Expand Down Expand Up @@ -228,7 +229,8 @@ macro_rules! system {
/// [base]: http://jcgm.bipm.org/vim/en/1.10.html
/// [quantities]: http://jcgm.bipm.org/vim/en/1.3.html
/// [quantity]: http://jcgm.bipm.org/vim/en/1.1.html
#[derive(Clone, Copy, Debug)]
#[allow(missing_debug_implementations)]
#[derive(Clone, Copy)]
pub struct BaseUnits<$($symbol,)+ V>
where $($symbol: system::$name::Unit<V>,)+ {
$($name: $crate::stdlib::marker::PhantomData<$symbol>,)+
Expand Down

0 comments on commit ad33d2a

Please sign in to comment.