summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2018-11-26 18:21:28 +0100
committerMatthias Beyer <mail@beyermatthias.de>2018-11-26 18:21:28 +0100
commitd70a97191cd46fb6fd7c86588bf52d05f17b47b6 (patch)
tree78884bcfadb9e36761a04e88b16edd84cd24aeda
parent1ce780795a513dd473d216b03942dcafee9474c8 (diff)
downloadimag-d70a97191cd46fb6fd7c86588bf52d05f17b47b6.zip
imag-d70a97191cd46fb6fd7c86588bf52d05f17b47b6.tar.gz
Simplify Display impl for Storeid
-rw-r--r--lib/core/libimagstore/src/storeid.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/core/libimagstore/src/storeid.rs b/lib/core/libimagstore/src/storeid.rs
index c783e14..f57d24a 100644
--- a/lib/core/libimagstore/src/storeid.rs
+++ b/lib/core/libimagstore/src/storeid.rs
@@ -187,10 +187,7 @@ impl StoreId {
impl Display for StoreId {
fn fmt(&self, fmt: &mut Formatter) -> RResult<(), FmtError> {
- match self.id.to_str() {
- Some(s) => write!(fmt, "{}", s),
- None => write!(fmt, "{}", self.id.to_string_lossy()),
- }
+ write!(fmt, "{}", self.id.display())
}
}