Skip to content

Commit 09b030d

Browse files
committed
build: [#556] fix project not building due to unused code
1 parent 4f84675 commit 09b030d

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

tests/common/contexts/torrent/file.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ use serde::Deserialize;
88
use which::which;
99

1010
/// Attributes parsed from a torrent file.
11+
#[allow(dead_code)]
1112
#[derive(Deserialize, Clone, Debug)]
1213
pub struct TorrentFileInfo {
1314
pub name: String,

tests/common/contexts/torrent/fixtures.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ impl From<TorrentIndexInfo> for UploadTorrentMultipartForm {
4040
}
4141

4242
/// Torrent that has been added to the index.
43+
#[allow(dead_code)]
4344
pub struct TorrentListedInIndex {
4445
pub torrent_id: Id,
4546
pub title: String,

tests/common/contexts/user/responses.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
use serde::Deserialize;
22

3+
#[allow(dead_code)]
34
#[derive(Deserialize, Debug)]
45
pub struct AddedUserResponse {
56
pub data: NewUserData,
67
}
78

9+
#[allow(dead_code)]
810
#[derive(Deserialize, Debug)]
911
pub struct NewUserData {
1012
pub user_id: i64,

0 commit comments

Comments
 (0)