Simplify Display impl for Storeid
This commit is contained in:
parent
1ce780795a
commit
d70a97191c
1 changed files with 1 additions and 4 deletions
|
@ -187,10 +187,7 @@ impl StoreId {
|
||||||
impl Display for StoreId {
|
impl Display for StoreId {
|
||||||
|
|
||||||
fn fmt(&self, fmt: &mut Formatter) -> RResult<(), FmtError> {
|
fn fmt(&self, fmt: &mut Formatter) -> RResult<(), FmtError> {
|
||||||
match self.id.to_str() {
|
write!(fmt, "{}", self.id.display())
|
||||||
Some(s) => write!(fmt, "{}", s),
|
|
||||||
None => write!(fmt, "{}", self.id.to_string_lossy()),
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue