Skip to content

Commit cc43752

Browse files
committed
chore: Bump MSRV to 1.65.0
1 parent e942dd3 commit cc43752

File tree

7 files changed

+16
-152
lines changed

7 files changed

+16
-152
lines changed

.clippy.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
msrv = "1.61.0" # MSRV
1+
msrv = "1.65.0" # MSRV

.github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ jobs:
6060
- name: No-default features
6161
run: cargo test --workspace --no-default-features
6262
msrv:
63-
name: "Check MSRV: 1.61.0"
63+
name: "Check MSRV: 1.65.0"
6464
runs-on: ubuntu-latest
6565
steps:
6666
- name: Checkout repository
6767
uses: actions/checkout@v3
6868
- name: Install Rust
6969
uses: actions-rs/toolchain@v1
7070
with:
71-
toolchain: 1.61.0 # MSRV
71+
toolchain: 1.65.0 # MSRV
7272
profile: minimal
7373
override: true
7474
- uses: Swatinem/rust-cache@v2
@@ -122,7 +122,7 @@ jobs:
122122
- name: Install Rust
123123
uses: actions-rs/toolchain@v1
124124
with:
125-
toolchain: 1.61.0 # MSRV
125+
toolchain: 1.65.0 # MSRV
126126
profile: minimal
127127
override: true
128128
components: clippy

.github/workflows/rust-next.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ jobs:
7171
strategy:
7272
matrix:
7373
rust:
74-
- 1.61.0 # MSRV
74+
- 1.65.0 # MSRV
7575
- stable
76-
continue-on-error: ${{ matrix.rust != '1.61.0' }} # MSRV
76+
continue-on-error: ${{ matrix.rust != '1.65.0' }} # MSRV
7777
runs-on: ubuntu-latest
7878
steps:
7979
- name: Checkout repository

Cargo.lock

+1-135
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ readme = "README.md"
1010
categories = ["command-line-interface"]
1111
keywords = ["git"]
1212
edition = "2021"
13-
rust-version = "1.61.0" # MSRV
13+
rust-version = "1.65.0" # MSRV
1414
include = [
1515
"build.rs",
1616
"src/**/*",
@@ -38,7 +38,6 @@ which = "4"
3838
bstr = { version = "1.1.0", default-features = false }
3939
tempfile = "3.3.0"
4040
shlex = "1.1.0"
41-
expanduser = "1.2.2"
4241

4342
[dev-dependencies]
4443
git-fixture = { version = "0.3", features = ["yaml"] }

src/ops.rs

+7-8
Original file line numberDiff line numberDiff line change
@@ -458,14 +458,13 @@ impl Sign for SshSign {
458458
literal_key_file = Some(temp);
459459
path
460460
} else {
461+
fn expanduser(path: &str) -> std::path::PathBuf {
462+
// HACK: Need a cross-platform solution
463+
std::path::PathBuf::from(path)
464+
}
465+
461466
// We assume a file
462-
expanduser::expanduser(&self.signing_key).map_err(|e| {
463-
git2::Error::new(
464-
git2::ErrorCode::GenericError,
465-
git2::ErrorClass::Os,
466-
format!("failed looking up signing file {}: {}", self.signing_key, e),
467-
)
468-
})?
467+
expanduser(&self.signing_key)
469468
};
470469

471470
let buffer_file = tempfile::NamedTempFile::new().map_err(|e| {
@@ -506,7 +505,7 @@ impl Sign for SshSign {
506505
return Err(git2::Error::new(
507506
git2::ErrorCode::GenericError,
508507
git2::ErrorClass::Os,
509-
format!("ssh-keygen -Y sign is needed for ssh signing (available in openssh version 8.2p1+)")
508+
"ssh-keygen -Y sign is needed for ssh signing (available in openssh version 8.2p1+)"
510509
));
511510
} else {
512511
return Err(git2::Error::new(

src/utils.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ fn find_git_bash() -> Option<std::path::PathBuf> {
2222
let git_path = which::which("git.exe").ok()?;
2323
let git_dir = git_path.parent()?.parent()?;
2424
let git_bash = git_dir.join("bin").join("bash.exe");
25-
git_bash.is_file().then(|| git_bash)
25+
git_bash.is_file().then_some(git_bash)
2626
}

0 commit comments

Comments
 (0)