diff options
author | Leonhard Markert <curiousleo@users.noreply.github.com> | 2020-02-10 09:01:43 +0100 |
---|---|---|
committer | Leonhard Markert <curiousleo@users.noreply.github.com> | 2020-02-10 09:03:24 +0100 |
commit | 1b56de8cd1dfc47729bddbafb023819086296e2e (patch) | |
tree | 41b4b49c83e457255d9c8022a52f3db60edc6580 /nix-rust/src/util | |
parent | d82b78bf51b2d8f626264fa992a907dd1088389a (diff) |
Remove macro_use
As of Rust 2018, macro_use is no longer required in most circumstances.
I think it is generally a good idea to remove these when not needed, to
stop them from polluting the crate's global namespace.
https://doc.rust-lang.org/edition-guide/rust-2018/macros/macro-changes.html#macro_rules-style-macros
Diffstat (limited to 'nix-rust/src/util')
-rw-r--r-- | nix-rust/src/util/base32.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nix-rust/src/util/base32.rs b/nix-rust/src/util/base32.rs index ba7368933..efd4a2901 100644 --- a/nix-rust/src/util/base32.rs +++ b/nix-rust/src/util/base32.rs @@ -1,4 +1,5 @@ use crate::error::Error; +use lazy_static::lazy_static; pub fn encoded_len(input_len: usize) -> usize { if input_len == 0 { @@ -87,7 +88,9 @@ pub fn decode(input: &str) -> Result<Vec<u8>, crate::Error> { #[cfg(test)] mod tests { use super::*; + use assert_matches::assert_matches; use hex; + use proptest::proptest; #[test] fn test_encode() { |