Skip to content

Commit 31351fa

Browse files
committed
fix: [#342] disable clippy warning
until we reestablish the E2E tests.
1 parent f8aa238 commit 31351fa

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ pbkdf2 = { version = "0", features = ["simple"] }
5656
rand_core = { version = "0", features = ["std"] }
5757
regex = "1"
5858
reqwest = { version = "0", features = ["json", "multipart"] }
59+
rustversion = "1.0.14"
5960
serde = { version = "1", features = ["rc"] }
6061
serde_bencode = "0"
6162
serde_bytes = "0"

project-words.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ rowid
6868
RUSTDOCFLAGS
6969
RUSTFLAGS
7070
rustfmt
71+
rustversion
7172
serde
7273
sgxj
7374
singlepart

tests/common/contexts/torrent/responses.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,19 @@ pub struct TorrentDetails {
7474
pub encoding: Option<String>,
7575
}
7676

77+
#[rustversion::stable]
7778
#[derive(Deserialize, PartialEq, Debug)]
7879
pub struct Category {
79-
pub category_id: CategoryId,
80+
pub category_id: CategoryId, // todo: rename to `id`
81+
pub name: String,
82+
pub num_torrents: u64,
83+
}
84+
85+
#[rustversion::nightly]
86+
#[derive(Deserialize, PartialEq, Debug)]
87+
#[allow(clippy::struct_field_names)]
88+
pub struct Category {
89+
pub category_id: CategoryId, // todo: rename to `id`
8090
pub name: String,
8191
pub num_torrents: u64,
8292
}

0 commit comments

Comments
 (0)