diff --git a/src/common/bit_source.rs b/src/common/bit_source.rs index 94ccc3aa..84c50157 100644 --- a/src/common/bit_source.rs +++ b/src/common/bit_source.rs @@ -16,7 +16,6 @@ //package com.google.zxing.common; -use std::borrow::Cow; use std::cmp; use std::io::{ErrorKind, Read}; @@ -176,7 +175,7 @@ impl<'a> BitSource<'a> { } } -impl<'a> Read for BitSource<'a> { +impl Read for BitSource<'_> { fn read(&mut self, buf: &mut [u8]) -> std::io::Result { let requested_bytes = buf.len(); let available = self.available();