diff options
Diffstat (limited to 'src/attributes/port_position.rs')
-rw-r--r-- | src/attributes/port_position.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/attributes/port_position.rs b/src/attributes/port_position.rs index 8900219..1948b8e 100644 --- a/src/attributes/port_position.rs +++ b/src/attributes/port_position.rs @@ -37,7 +37,7 @@ impl<'a> DotString<'a> for PortPosition { #[cfg(test)] mod test { - use crate::attributes::{PortPosition, CompassPoint}; + use crate::attributes::{CompassPoint, PortPosition}; use crate::DotString; #[test] @@ -47,14 +47,16 @@ mod test { PortPosition::Port { port_name: "port_0".to_string(), compass_point: None - }.dot_string() + } + .dot_string() ); assert_eq!( "port_0:ne", PortPosition::Port { port_name: "port_0".to_string(), compass_point: Some(CompassPoint::NE) - }.dot_string() + } + .dot_string() ); } @@ -62,4 +64,4 @@ mod test { fn compass_dot_string() { assert_eq!("ne", PortPosition::Compass(CompassPoint::NE).dot_string()); } -}
\ No newline at end of file +} |