Remove redundant import.
This commit is contained in:
parent
38c701187d
commit
794b04725f
1 changed files with 0 additions and 1 deletions
|
@ -66,7 +66,6 @@ impl fmt::Debug for Fingerprint {
|
||||||
fn fingerprint(input: &[u8]) -> nom::IResult<&[u8], Option<Fingerprint>> {
|
fn fingerprint(input: &[u8]) -> nom::IResult<&[u8], Option<Fingerprint>> {
|
||||||
combinator::map(bytes::take(20u8), |i: &[u8]| {
|
combinator::map(bytes::take(20u8), |i: &[u8]| {
|
||||||
if i.iter().any(|&c| c > 0) {
|
if i.iter().any(|&c| c > 0) {
|
||||||
use std::convert::TryInto;
|
|
||||||
// We requested 20 bytes, so we can unwrap here
|
// We requested 20 bytes, so we can unwrap here
|
||||||
let i: [u8; 20] = i.try_into().unwrap();
|
let i: [u8; 20] = i.try_into().unwrap();
|
||||||
Some(i.into())
|
Some(i.into())
|
||||||
|
|
Loading…
Reference in a new issue