diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-10-17 15:02:53 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-10-17 15:16:03 +0100 |
| commit | 709946c1b49114b71d3080bb8d97e63525f40fd9 (patch) | |
| tree | c6b96c9a4c0c306187991166338f108b95d3bb80 /src/bin | |
| parent | c7c6e8ba4bf3309aed92a620b2435370dae0d6ed (diff) | |
chore: cargo update
update patches ahead of wider upgrade. clippy required some autofixes
Diffstat (limited to 'src/bin')
| -rw-r--r-- | src/bin/git_remote_nostr/push.rs | 5 | ||||
| -rw-r--r-- | src/bin/ngit/sub_commands/init.rs | 4 |
2 files changed, 3 insertions, 6 deletions
diff --git a/src/bin/git_remote_nostr/push.rs b/src/bin/git_remote_nostr/push.rs index fc82796..1645ae8 100644 --- a/src/bin/git_remote_nostr/push.rs +++ b/src/bin/git_remote_nostr/push.rs | |||
| @@ -1391,10 +1391,7 @@ fn update_remote_refs_pushed( | |||
| 1391 | 1391 | ||
| 1392 | fn refspec_to_from_to(refspec: &str) -> Result<(&str, &str)> { | 1392 | fn refspec_to_from_to(refspec: &str) -> Result<(&str, &str)> { |
| 1393 | if !refspec.contains(':') { | 1393 | if !refspec.contains(':') { |
| 1394 | bail!( | 1394 | bail!("refspec should contain a colon (:) but consists of: {refspec}"); |
| 1395 | "refspec should contain a colon (:) but consists of: {}", | ||
| 1396 | refspec | ||
| 1397 | ); | ||
| 1398 | } | 1395 | } |
| 1399 | let parts = refspec.split(':').collect::<Vec<&str>>(); | 1396 | let parts = refspec.split(':').collect::<Vec<&str>>(); |
| 1400 | Ok(( | 1397 | Ok(( |
diff --git a/src/bin/ngit/sub_commands/init.rs b/src/bin/ngit/sub_commands/init.rs index e28268d..39fe670 100644 --- a/src/bin/ngit/sub_commands/init.rs +++ b/src/bin/ngit/sub_commands/init.rs | |||
| @@ -1055,7 +1055,7 @@ fn push_main_or_master_branch(git_repo: &Repo) -> Result<()> { | |||
| 1055 | if exit_status.success() { | 1055 | if exit_status.success() { |
| 1056 | Ok(()) | 1056 | Ok(()) |
| 1057 | } else { | 1057 | } else { |
| 1058 | bail!("git push process exited with an error: {}", exit_status); | 1058 | bail!("git push process exited with an error: {exit_status}"); |
| 1059 | } | 1059 | } |
| 1060 | } | 1060 | } |
| 1061 | 1061 | ||
| @@ -1086,6 +1086,6 @@ fn run_ngit_sync() -> Result<()> { | |||
| 1086 | if exit_status.success() { | 1086 | if exit_status.success() { |
| 1087 | Ok(()) | 1087 | Ok(()) |
| 1088 | } else { | 1088 | } else { |
| 1089 | bail!("ngit sync process exited with an error: {}", exit_status); | 1089 | bail!("ngit sync process exited with an error: {exit_status}"); |
| 1090 | } | 1090 | } |
| 1091 | } | 1091 | } |