History

thanks clippy

Sebastian Thiel committed 4 years ago

Commit c1399d11 parent c00cc352 files · +3 −2Browse files

Showing the changes to git-credentials/src/program (1 of 2 files). Show all

Unified · Split

git-credentials/src/program/cascade.rs+2−1
@@ -47,7 +47,8 @@ impl Cascade { · 46 unmodified lines
4747 ctx.protocol = Some(url.scheme.as_str().into());
4848 ctx.host = url.host().map(ToOwned::to_owned).map(|mut host| {
4949 if let Some(port) = url.port {
50− host.push_str(&format!(":{}", port));
50+ use std::fmt::Write;
51+ write!(host, ":{}", port).expect("infallible");
5152 }
5253 host
5354 });