aboutsummaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
Diffstat (limited to 'src/model')
-rw-r--r--src/model/helper/error.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/model/helper/error.rs b/src/model/helper/error.rs
index b9b515f3..30b2ba32 100644
--- a/src/model/helper/error.rs
+++ b/src/model/helper/error.rs
@@ -31,11 +31,7 @@ where
fn ok_or_bad_request<M: AsRef<str>>(self, reason: M) -> Result<T, Error> {
match self {
Ok(x) => Ok(x),
- Err(e) => Err(Error::BadRequest(format!(
- "{}: {}",
- reason.as_ref(),
- e.to_string()
- ))),
+ Err(e) => Err(Error::BadRequest(format!("{}: {}", reason.as_ref(), e))),
}
}
}