diff options
author | Daniel Mueller <deso@posteo.net> | 2018-12-10 22:11:41 -0800 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2018-12-10 22:11:41 -0800 |
commit | 0b18dd976269b09d3d44208eaab0000ddfebaf93 (patch) | |
tree | a72b23a25af51c1fbd8300ec68cd3f093ac731f7 /nitrocli/src/nitrokey.rs | |
parent | 7fd034561b13bac5ab02d8ba23c40be1a70b5a9c (diff) | |
download | nitrocli-0b18dd976269b09d3d44208eaab0000ddfebaf93.tar.gz nitrocli-0b18dd976269b09d3d44208eaab0000ddfebaf93.tar.bz2 |
Enable rust_2018_compatibility lint
In preparation for the switch to using Rust 2018, this change enables
the rust_2018_compatibility lint. Along with that enablement we fix the
warnings emitted by it, which evolve around the module system changes
Rust has gone through and that require us to prefix initial uses of
crate local modules with "crate".
Diffstat (limited to 'nitrocli/src/nitrokey.rs')
-rw-r--r-- | nitrocli/src/nitrokey.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nitrocli/src/nitrokey.rs b/nitrocli/src/nitrokey.rs index 83f5d1f..64685e2 100644 --- a/nitrocli/src/nitrokey.rs +++ b/nitrocli/src/nitrokey.rs @@ -17,10 +17,11 @@ // * along with this program. If not, see <http://www.gnu.org/licenses/>. * // ************************************************************************* -use crc32::crc; use std::cmp; use std::mem; +use crate::crc32::crc; + // The Nitrokey Storage vendor ID. pub const VID: u16 = 0x20A0; |