From 09b030d3eb231b0a9beb7f77ae73c85e7a5f29af Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 8 Apr 2024 23:50:50 +0200 Subject: [PATCH] build: [#556] fix project not building due to unused code --- tests/common/contexts/torrent/file.rs | 1 + tests/common/contexts/torrent/fixtures.rs | 1 + tests/common/contexts/user/responses.rs | 2 ++ 3 files changed, 4 insertions(+) diff --git a/tests/common/contexts/torrent/file.rs b/tests/common/contexts/torrent/file.rs index 5d8a541a..d9d3783f 100644 --- a/tests/common/contexts/torrent/file.rs +++ b/tests/common/contexts/torrent/file.rs @@ -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, diff --git a/tests/common/contexts/torrent/fixtures.rs b/tests/common/contexts/torrent/fixtures.rs index e60b6089..b085ddec 100644 --- a/tests/common/contexts/torrent/fixtures.rs +++ b/tests/common/contexts/torrent/fixtures.rs @@ -40,6 +40,7 @@ impl From for UploadTorrentMultipartForm { } /// Torrent that has been added to the index. +#[allow(dead_code)] pub struct TorrentListedInIndex { pub torrent_id: Id, pub title: String, diff --git a/tests/common/contexts/user/responses.rs b/tests/common/contexts/user/responses.rs index 1a9a3837..f917be18 100644 --- a/tests/common/contexts/user/responses.rs +++ b/tests/common/contexts/user/responses.rs @@ -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,