Use core replacements for std members
[rust-lightning] / lightning / src / util / poly1305.rs
index d5173f2e27ea28f56cfb3313af3d4599842fa931..c6dbb43dd0d455f3538bcfb5d6edc9af101d6688 100644 (file)
@@ -7,7 +7,7 @@
 // This is a port of Andrew Moons poly1305-donna
 // https://github.com/floodyberry/poly1305-donna
 
-use std::cmp::min;
+use core::cmp::min;
 use util::byte_utils::{slice_to_le32, le32_to_array};
 
 #[derive(Clone, Copy)]
@@ -205,7 +205,7 @@ impl Poly1305 {
 
 #[cfg(test)]
 mod test {
-       use std::iter::repeat;
+       use core::iter::repeat;
 
        use util::poly1305::Poly1305;