Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 42fd77b

Browse files
committed
Fix compile warnings
1 parent cb427fc commit 42fd77b

3 files changed

Lines changed: 3 additions & 12 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,3 @@ members = [
112112

113113
"tests/tools",
114114
]
115-
116-
[patch.crates-io]
117-
# Until https://github.com/tailhook/quick-error/pull/56 is merged
118-
quick-error = {git = "https://github.com/byron/quick-error"}

git-url/src/parse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ pub fn parse(bytes: &[u8]) -> Result<crate::Url, Error> {
127127
return Err(Error::EmptyPath);
128128
}
129129
if url.cannot_be_a_base() {
130-
return Err(Error::RelativeUrl(url.into_string()));
130+
return Err(Error::RelativeUrl(url.into()));
131131
}
132132

133133
to_owned_url(url)

0 commit comments

Comments
 (0)