mirror of
https://github.com/Serial-ATA/lofty-rs
synced 2024-11-10 06:34:18 +00:00
Clippy + fmt
This commit is contained in:
parent
b697ccee97
commit
f10e31fae1
1 changed files with 2 additions and 2 deletions
|
@ -1,10 +1,10 @@
|
||||||
use super::item::ApeItem;
|
use super::item::ApeItem;
|
||||||
use super::ApeTag;
|
use super::ApeTag;
|
||||||
use crate::ape::constants::{APE_PREAMBLE, INVALID_KEYS};
|
use crate::ape::constants::{APE_PREAMBLE, INVALID_KEYS};
|
||||||
use crate::picture::{APE_PICTURE_TYPES, Picture};
|
|
||||||
use crate::ape::header::{self, ApeHeader};
|
use crate::ape::header::{self, ApeHeader};
|
||||||
use crate::error::Result;
|
use crate::error::Result;
|
||||||
use crate::macros::{decode_err, err, try_vec};
|
use crate::macros::{decode_err, err, try_vec};
|
||||||
|
use crate::picture::{Picture, APE_PICTURE_TYPES};
|
||||||
use crate::tag::item::ItemValue;
|
use crate::tag::item::ItemValue;
|
||||||
use crate::util::text::utf8_decode;
|
use crate::util::text::utf8_decode;
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ where
|
||||||
let mut value = try_vec![0; value_size as usize];
|
let mut value = try_vec![0; value_size as usize];
|
||||||
data.read_exact(&mut value)?;
|
data.read_exact(&mut value)?;
|
||||||
|
|
||||||
if APE_PICTURE_TYPES.contains(&&**&key) {
|
if APE_PICTURE_TYPES.contains(&&*key) {
|
||||||
tag.pictures.push(Picture::from_ape_bytes(&key, &value)?);
|
tag.pictures.push(Picture::from_ape_bytes(&key, &value)?);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue