chore(net): enable rust.unnameable-types = "warn" lint (#9505)

This commit is contained in:
Tuan Tran
2024-07-17 00:40:10 +07:00
committed by GitHub
parent 4dbf47b91d
commit e6f2dca445
11 changed files with 51 additions and 8 deletions

View File

@ -81,7 +81,7 @@ pub enum ECIESErrorImpl {
/// decode a message from the (partially filled) buffer.
#[error("stream closed due to not being readable")]
UnreadableStream,
// Error when data is not received from peer for a prolonged period.
/// Error when data is not received from peer for a prolonged period.
#[error("never received data from remote peer")]
StreamTimeout,
}

View File

@ -14,7 +14,7 @@ pub mod stream;
pub mod util;
mod error;
pub use error::ECIESError;
pub use error::{ECIESError, ECIESErrorImpl};
pub mod codec;