mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-14 14:46:37 +00:00
Fix crate_version_source.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
8f13d324c4
commit
01d5dbf234
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
use std::{borrow::Cow, fmt::{Self, Write as _}, str::FromStr};
|
use std::{borrow::Cow, fmt::{self, Write as _}, str::FromStr};
|
||||||
|
|
||||||
use binstalk_types::maybe_owned::MaybeOwned;
|
use binstalk_types::maybe_owned::MaybeOwned;
|
||||||
use compact_str::CompactString;
|
use compact_str::CompactString;
|
||||||
|
@ -131,7 +131,7 @@ impl fmt::Display for Source<'_> {
|
||||||
Source::Sparse(url) => {
|
Source::Sparse(url) => {
|
||||||
let url = url.as_str();
|
let url = url.as_str();
|
||||||
write!(f, "sparse+{url}")?;
|
write!(f, "sparse+{url}")?;
|
||||||
if (url.ends_with("/")) {
|
if url.ends_with("/") {
|
||||||
Ok(())
|
Ok(())
|
||||||
} else {
|
} else {
|
||||||
f.write_char('/')
|
f.write_char('/')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue