mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-25 06:40:03 +00:00
Update <simple_git::GitUrl as Display>::fmt
impl (#1582)
Forward it to `<gix::Url as Display>::fmt` now that `gix::Url` implements `Display` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
32b73b1ee9
commit
70ebed3702
1 changed files with 1 additions and 4 deletions
|
@ -18,10 +18,7 @@ pub struct GitUrl(Url);
|
|||
|
||||
impl fmt::Display for GitUrl {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
let url_bstr = self.0.to_bstring();
|
||||
let url_str = String::from_utf8_lossy(&url_bstr);
|
||||
|
||||
f.write_str(&url_str)
|
||||
fmt::Display::fmt(&self.0, f)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue