diff options
author | Alex Auvolat <alex@adnab.me> | 2021-10-12 13:18:24 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-10-12 13:18:24 +0200 |
commit | 74e661febe14e165349497bca689a50c5edacc94 (patch) | |
tree | 1a19b11e5f182828ab6976a58ae9e99e785ee4df /src/error.rs | |
parent | 7753b789b7aca87db4db7aed20e79a41ecb0b225 (diff) | |
download | netapp-74e661febe14e165349497bca689a50c5edacc94.tar.gz netapp-74e661febe14e165349497bca689a50c5edacc94.zip |
Fix clippy lints
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/error.rs b/src/error.rs index 44a3d50..469670a 100644 --- a/src/error.rs +++ b/src/error.rs @@ -31,13 +31,13 @@ pub enum Error { impl<T> From<tokio::sync::watch::error::SendError<T>> for Error { fn from(_e: tokio::sync::watch::error::SendError<T>) -> Error { - Error::Message(format!("Watch send error")) + Error::Message("Watch send error".into()) } } impl<T> From<tokio::sync::mpsc::error::SendError<T>> for Error { fn from(_e: tokio::sync::mpsc::error::SendError<T>) -> Error { - Error::Message(format!("MPSC send error")) + Error::Message("MPSC send error".into()) } } |