Merge pull request #158 from izderadicka/suppress_dead_code_warnings
Mark dead code explicitly
This commit is contained in:
commit
91f03cb81d
5 changed files with 11 additions and 0 deletions
|
|
@ -155,6 +155,7 @@ impl IntoResponse for ApiError {
|
|||
|
||||
pub trait ApiErrorExt<T> {
|
||||
fn with_error_status_code(self, s: StatusCode) -> Result<T, ApiError>;
|
||||
#[allow(dead_code)]
|
||||
fn with_plaintext_error(self, value: bool) -> Result<T, ApiError>;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ pub enum ReadMetainfoResult<Rx> {
|
|||
seen: HashSet<SocketAddr>,
|
||||
},
|
||||
ChannelClosed {
|
||||
#[allow(dead_code)]
|
||||
seen: HashSet<SocketAddr>,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -150,7 +150,9 @@ impl TorrentStateLocked {
|
|||
|
||||
#[derive(Default)]
|
||||
pub struct TorrentStateOptions {
|
||||
#[allow(dead_code)]
|
||||
pub peer_connect_timeout: Option<Duration>,
|
||||
#[allow(dead_code)]
|
||||
pub peer_read_write_timeout: Option<Duration>,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue