diff options
author | Paul Masurel <paul.masurel@gmail.com> | 2017-12-14 18:23:35 +0900 |
---|---|---|
committer | Paul Masurel <paul.masurel@gmail.com> | 2017-12-14 18:23:35 +0900 |
commit | f24e5f405ec205b99989554a7cea48cb2f4b9d07 (patch) | |
tree | 1508a82b18ff0112c338abd271e572c16bd87dd9 /src/common | |
parent | 2589be3984a7fe71c38b7da07475a2481cdd4d27 (diff) |
NOBUG intellij misc lint
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/bitpacker.rs | 8 | ||||
-rw-r--r-- | src/common/counting_writer.rs | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/common/bitpacker.rs b/src/common/bitpacker.rs index 54d5ccc..ab3d59d 100644 --- a/src/common/bitpacker.rs +++ b/src/common/bitpacker.rs @@ -44,7 +44,7 @@ impl BitPacker { BitPacker { mini_buffer: 0u64, mini_buffer_written: 0, - num_bits: num_bits, + num_bits, } } @@ -107,9 +107,9 @@ where (1u64 << num_bits) - 1u64 }; BitUnpacker { - num_bits: num_bits, - mask: mask, - data: data, + num_bits, + mask, + data, } } diff --git a/src/common/counting_writer.rs b/src/common/counting_writer.rs index d9ea877..2a6431b 100644 --- a/src/common/counting_writer.rs +++ b/src/common/counting_writer.rs @@ -10,7 +10,7 @@ pub struct CountingWriter<W> { impl<W: Write> CountingWriter<W> { pub fn wrap(underlying: W) -> CountingWriter<W> { CountingWriter { - underlying: underlying, + underlying, written_bytes: 0, } } |