This is useful when debugging, to get a human readable output instead of an
array of u8.
Details
Details
- Reviewers
kevincox pulkit - Group Reviewers
hg-reviewers - Commits
- rHGc27e688fcdc3: rust-hg-path: implement `Display` for `HgPath` and `HgPathBuf`
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
Event Timeline
rust/hg-core/src/utils/hg_path.rs | ||
---|---|---|
168 | This looks more like a Debug format than a Display format. For Display I would just do write!(f, "{}", String::from_utf8_lossy(&self.inner))` |
This looks more like a Debug format than a Display format. For Display I would just do write!(f, "{}", String::from_utf8_lossy(&self.inner))`