Skip to content

Commit

Permalink
fix: [torrust#342] disable clippy warning
Browse files Browse the repository at this point in the history
until we reestablish the E2E tests.
  • Loading branch information
josecelano committed Nov 14, 2023
1 parent f8aa238 commit 31351fa
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ pbkdf2 = { version = "0", features = ["simple"] }
rand_core = { version = "0", features = ["std"] }
regex = "1"
reqwest = { version = "0", features = ["json", "multipart"] }
rustversion = "1.0.14"
serde = { version = "1", features = ["rc"] }
serde_bencode = "0"
serde_bytes = "0"
Expand Down
1 change: 1 addition & 0 deletions project-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ rowid
RUSTDOCFLAGS
RUSTFLAGS
rustfmt
rustversion
serde
sgxj
singlepart
Expand Down
12 changes: 11 additions & 1 deletion tests/common/contexts/torrent/responses.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,19 @@ pub struct TorrentDetails {
pub encoding: Option<String>,
}

#[rustversion::stable]
#[derive(Deserialize, PartialEq, Debug)]
pub struct Category {
pub category_id: CategoryId,
pub category_id: CategoryId, // todo: rename to `id`
pub name: String,
pub num_torrents: u64,
}

#[rustversion::nightly]
#[derive(Deserialize, PartialEq, Debug)]
#[allow(clippy::struct_field_names)]
pub struct Category {
pub category_id: CategoryId, // todo: rename to `id`
pub name: String,
pub num_torrents: u64,
}
Expand Down

0 comments on commit 31351fa

Please sign in to comment.