fix clippy warnings on util and rpc

This commit is contained in:
Trinity Pointard
2021-04-09 02:32:42 +02:00
committed by Alex Auvolat
parent 88925ebe22
commit f05bb111c2
9 changed files with 45 additions and 51 deletions
+2 -2
View File
@@ -93,12 +93,12 @@ impl From<sled::transaction::TransactionError<Error>> for 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".to_string())
}
}
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".to_string())
}
}