Skip to content

Commit 66602bb

Browse files
committed
adjust to changes in gix-url
1 parent c6897d9 commit 66602bb

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

gix-transport/src/client/blocking_io/file.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl SpawnProcessOnDemand {
7171
}
7272
fn new_local(path: BString, version: Protocol) -> SpawnProcessOnDemand {
7373
SpawnProcessOnDemand {
74-
url: gix_url::Url::from_parts_as_alternative_form(gix_url::Scheme::File, None, None, None, path.clone())
74+
url: gix_url::Url::from_parts(gix_url::Scheme::File, None, None, None, None, path.clone(), true)
7575
.expect("valid url"),
7676
path,
7777
ssh_cmd: None,

gix-transport/src/client/blocking_io/ssh/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ pub mod connect {
8686
///
8787
/// The `desired_version` is the preferred protocol version when establishing the connection, but note that it can be
8888
/// downgraded by servers not supporting it.
89+
#[allow(clippy::result_large_err)]
8990
pub fn connect(
9091
url: gix_url::Url,
9192
desired_version: Protocol,

gix-transport/src/client/blocking_io/ssh/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ mod program_kind {
192192
}
193193

194194
fn joined(input: &[&str]) -> String {
195-
input.iter().copied().collect::<Vec<_>>().join(" ")
195+
input.to_vec().join(" ")
196196
}
197197
fn try_call(
198198
kind: ProgramKind,

gix/src/remote/save.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ impl Remote<'_> {
3232
/// Note that all sections named `remote "<name>"` will be cleared of all values we are about to write,
3333
/// and the last `remote "<name>"` section will be containing all relevant values so that reloading the remote
3434
/// from `config` would yield the same in-memory state.
35+
#[allow(clippy::result_large_err)]
3536
pub fn save_to(&self, config: &mut gix_config::File<'static>) -> Result<(), Error> {
3637
fn as_key(name: &str) -> gix_config::parse::section::Key<'_> {
3738
name.try_into().expect("valid")
@@ -109,6 +110,7 @@ impl Remote<'_> {
109110
/// Note that this sets a name for anonymous remotes, but overwrites the name for those who were named before.
110111
/// If this name is different from the current one, the git configuration will still contain the previous name,
111112
/// and the caller should account for that.
113+
#[allow(clippy::result_large_err)]
112114
pub fn save_as_to(
113115
&mut self,
114116
name: impl Into<BString>,

0 commit comments

Comments
 (0)