Rewrite Display for StoreId

This commit is contained in:
Matthias Beyer 2016-08-07 16:46:31 +02:00
parent fb1df533c5
commit 69b3f6bf87

View file

@ -50,9 +50,9 @@ impl Into<PathBuf> for StoreId {
impl Display for StoreId {
fn fmt(&self, fmt: &mut Formatter) -> RResult<(), FmtError> {
match self.0.to_str() {
match self.id.to_str() {
Some(s) => write!(fmt, "{}", s),
None => write!(fmt, "{}", self.0.to_string_lossy()),
None => write!(fmt, "{}", self.id.to_string_lossy()),
}
}