Skip to content

Commit eb3dd11

Browse files
committed
dev: fix clippy warnings for: src/models/response.rs
1 parent b737f10 commit eb3dd11

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/models/response.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,33 @@ pub enum OkResponses {
88
TokenResponse(TokenResponse),
99
}
1010

11+
#[allow(clippy::module_name_repetitions)]
1112
#[derive(Serialize, Deserialize, Debug)]
1213
pub struct OkResponse<T> {
1314
pub data: T,
1415
}
1516

17+
#[allow(clippy::module_name_repetitions)]
1618
#[derive(Serialize, Deserialize, Debug)]
1719
pub struct ErrorResponse<T> {
1820
pub errors: Vec<T>,
1921
}
2022

23+
#[allow(clippy::module_name_repetitions)]
2124
#[derive(Serialize, Deserialize, Debug)]
2225
pub struct TokenResponse {
2326
pub token: String,
2427
pub username: String,
2528
pub admin: bool,
2629
}
2730

31+
#[allow(clippy::module_name_repetitions)]
2832
#[derive(Serialize, Deserialize, Debug)]
2933
pub struct NewTorrentResponse {
3034
pub torrent_id: i64,
3135
}
3236

37+
#[allow(clippy::module_name_repetitions)]
3338
#[derive(Debug, Serialize, Deserialize, sqlx::FromRow)]
3439
pub struct TorrentResponse {
3540
pub torrent_id: i64,
@@ -72,6 +77,7 @@ impl TorrentResponse {
7277
}
7378
}
7479

80+
#[allow(clippy::module_name_repetitions)]
7581
#[derive(Serialize, Deserialize, Debug, sqlx::FromRow)]
7682
pub struct TorrentsResponse {
7783
pub total: u32,

0 commit comments

Comments
 (0)