Skip to content

Commit 10fd68e

Browse files
committed
fix build with rustc 1.60.0-nightly (734368a20 2022-02-07)
unreachable!("{}"); is no longer valid, see rust-lang/rust/issues/92137
1 parent e8e1d96 commit 10fd68e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
## Git
22
```
3+
Fix build with nightly.
4+
unreachable!("{}") is no longer accepted: https://github.com/rust-lang/rust/issues/92137
5+
36
Build: add "ventored-libgit" feature that enables libgit2 vendoring (statically link libgit2 into cargo-cache instead of linking agaist the system libgit2)
47
The feature is on by default but it can be skipped (using --no-default-features) by distributors who would like cargo-cache to link against system libgit2
5-
68
```
79

810
## Version 0.8.1 (1fcffbb)

src/date.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ pub(crate) fn remove_files_by_dates(
176176
(None, Some(younger)) => AgeRelation::FileYoungerThanDate(younger),
177177
(Some(older), None) => AgeRelation::FileOlderThanDate(older),
178178
(Some(_older), Some(_younger)) => {
179-
unreachable!("passing both, --remove-if-{older,younger}-than was temporarily disabled!")
179+
unreachable!("{}", "passing both, --remove-if-{older,younger}-than was temporarily disabled!")
180180
} // (Some(older), Some(younger)) => DateComparison::OlderOrYounger(older, younger),
181181
};
182182

0 commit comments

Comments
 (0)