mirror of
https://github.com/martinvonz/jj.git
synced 2024-12-26 14:00:51 +00:00
repo_path: qualify fmt::Error, use fmt::Result for short
"Error" is super common type name, so I think better to not pollute the namespace with a very specific Error type.
This commit is contained in:
parent
93cebcd0c0
commit
0b833ea9c0
1 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@
|
|||
|
||||
use std::borrow::Borrow;
|
||||
use std::cmp::Ordering;
|
||||
use std::fmt::{Debug, Error, Formatter};
|
||||
use std::fmt::{self, Debug, Formatter};
|
||||
use std::iter::FusedIterator;
|
||||
use std::ops::Deref;
|
||||
use std::path::{Component, Path, PathBuf};
|
||||
|
@ -172,13 +172,13 @@ pub struct RepoPath {
|
|||
}
|
||||
|
||||
impl Debug for RepoPath {
|
||||
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error> {
|
||||
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
|
||||
f.write_fmt(format_args!("{:?}", &self.value))
|
||||
}
|
||||
}
|
||||
|
||||
impl Debug for RepoPathBuf {
|
||||
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error> {
|
||||
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
|
||||
<RepoPath as Debug>::fmt(self, f)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue