Explorar o código

Update syntax of literal zero

Ron Williams %!s(int64=2) %!d(string=hai) anos
pai
achega
8e71a960f7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      aml/src/value.rs

+ 1 - 1
aml/src/value.rs

@@ -286,7 +286,7 @@ impl AmlValue {
                 let bytes = bytes.lock();
                 let bytes = if bytes.len() > 8 { &bytes[0..8] } else { &bytes[..] };
 
-                Ok(bytes.iter().rev().fold(0: u64, |mut i, &popped| {
+                Ok(bytes.iter().rev().fold(0u64, |mut i, &popped| {
                     i <<= 8;
                     i += popped as u64;
                     i