aboutsummaryrefslogtreecommitdiff
path: root/src/util/error.rs
diff options
context:
space:
mode:
authorTrinity Pointard <trinity.pointard@gmail.com>2021-04-09 02:32:42 +0200
committerAlex Auvolat <alex@adnab.me>2021-05-03 22:11:41 +0200
commitf05bb111c2e7dd77f2b34b82892bbfa8e6a063c1 (patch)
tree0e093982ad6e30a440dcdbd9d8e47c4e75b9d198 /src/util/error.rs
parent88925ebe2210a8382b4d353fcab15d2b5c345efb (diff)
downloadgarage-f05bb111c2e7dd77f2b34b82892bbfa8e6a063c1.tar.gz
garage-f05bb111c2e7dd77f2b34b82892bbfa8e6a063c1.zip
fix clippy warnings on util and rpc
Diffstat (limited to 'src/util/error.rs')
-rw-r--r--src/util/error.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/error.rs b/src/util/error.rs
index 32dccbe6..2b862269 100644
--- a/src/util/error.rs
+++ b/src/util/error.rs
@@ -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())
}
}