Simplify Display impl for Storeid

This commit is contained in:
Matthias Beyer 2018-11-26 18:21:28 +01:00
parent 1ce780795a
commit d70a97191c

View file

@ -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())
}
}