fix: remove allow(dead_code)

This commit is contained in:
Theta-Dev 2022-10-10 12:33:06 +02:00
parent 1bc47b7c2d
commit 44e14a4ae0
4 changed files with 8 additions and 1 deletions

View file

@ -271,6 +271,7 @@ async fn download_chunks_by_param(
Ok(())
}
#[allow(dead_code)]
struct StreamDownload {
file: PathBuf,
// track_name: String TODO: add for multiple audio languages,

View file

@ -3,7 +3,6 @@
//! Client for the public YouTube / YouTube Music API (Innertube),
//! inspired by [NewPipe](https://github.com/TeamNewPipe/NewPipeExtractor).
#![allow(dead_code)]
#![warn(clippy::todo)]
#[macro_use]

View file

@ -497,6 +497,7 @@ mod tests {
fn t_deserialize_text(#[case] test_json: &str, #[case] exp: Vec<&str>) {
#[serde_as]
#[derive(Deserialize)]
#[allow(dead_code)]
struct S {
#[serde_as(as = "Text")]
txt: String,
@ -504,6 +505,7 @@ mod tests {
#[serde_as]
#[derive(Deserialize)]
#[allow(dead_code)]
struct SVec {
#[serde_as(as = "Text")]
txt: Vec<String>,
@ -517,17 +519,20 @@ mod tests {
}
#[derive(Debug, Deserialize)]
#[allow(dead_code)]
struct SLink {
ln: TextComponent,
}
#[derive(Debug, Deserialize)]
#[allow(dead_code)]
struct SLinks {
ln: TextComponents,
}
#[serde_as]
#[derive(Debug, Deserialize)]
#[allow(dead_code)]
struct SAttributed {
#[serde_as(as = "AttributedText")]
ln: TextComponents,

View file

@ -98,12 +98,14 @@ mod tests {
#[serde_as]
#[derive(Debug, Deserialize)]
#[allow(dead_code)]
struct S {
#[serde_as(as = "crate::serializer::VecLogError<_>")]
items: MapResult<Vec<Item>>,
}
#[derive(Debug, Deserialize)]
#[allow(dead_code)]
struct Item {
name: String,
}