Skip to content

Commit

Permalink
build: [#556] fix project not building due to unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-nt committed Apr 8, 2024
1 parent 4f84675 commit 09b030d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/common/contexts/torrent/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use serde::Deserialize;
use which::which;

/// Attributes parsed from a torrent file.
#[allow(dead_code)]
#[derive(Deserialize, Clone, Debug)]
pub struct TorrentFileInfo {
pub name: String,
Expand Down
1 change: 1 addition & 0 deletions tests/common/contexts/torrent/fixtures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ impl From<TorrentIndexInfo> for UploadTorrentMultipartForm {
}

/// Torrent that has been added to the index.
#[allow(dead_code)]
pub struct TorrentListedInIndex {
pub torrent_id: Id,
pub title: String,
Expand Down
2 changes: 2 additions & 0 deletions tests/common/contexts/user/responses.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
use serde::Deserialize;

#[allow(dead_code)]
#[derive(Deserialize, Debug)]
pub struct AddedUserResponse {
pub data: NewUserData,
}

#[allow(dead_code)]
#[derive(Deserialize, Debug)]
pub struct NewUserData {
pub user_id: i64,
Expand Down

0 comments on commit 09b030d

Please sign in to comment.