applies rustfmt to cleanup
uses std::env::current_dir to find out where the tests are running from
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
pub struct NumberSystemConversion {}
|
||||
|
||||
impl NumberSystemConversion {
|
||||
/// byte_to_bool
|
||||
///
|
||||
@@ -94,7 +93,6 @@ impl NumberSystemConversion {
|
||||
(high as u16) << 8 | low as u16
|
||||
}
|
||||
|
||||
|
||||
/// clear_high_bits
|
||||
///
|
||||
/// Clear the 8 MSB of the value
|
||||
@@ -102,7 +100,7 @@ impl NumberSystemConversion {
|
||||
/// ex: 0xffff -> 0x00ff
|
||||
/// 0xabcd -> 0x00cd
|
||||
pub fn clear_high_bits(to_clear: u16) -> u16 {
|
||||
to_clear & 0x00ff
|
||||
to_clear & 0x00ff
|
||||
}
|
||||
|
||||
/// clear_low_bits
|
||||
|
||||
Reference in New Issue
Block a user