We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b68ba95 commit 37aeb2fCopy full SHA for 37aeb2f
gix-fs/tests/fs/snapshot.rs
@@ -51,13 +51,13 @@ fn do_journey() -> Result<(), Box<dyn std::error::Error>> {
51
fn has_granular_times(root: &Path) -> std::io::Result<bool> {
52
let n = 50;
53
54
- let names = (0..n).map(|i| format!("{i:03}"));
55
- for name in names.clone() {
56
- std::fs::write(root.join(&name), name)?;
+ let paths = (0..n).map(|i| root.join(format!("{i:03}")));
+ for (index, path) in paths.clone().enumerate() {
+ std::fs::write(&path, index.to_string().as_bytes())?;
57
}
58
let mut times = Vec::new();
59
- for name in names {
60
- times.push(root.join(name).symlink_metadata()?.modified()?);
+ for path in paths {
+ times.push(path.symlink_metadata()?.modified()?);
61
62
times.sort();
63
times.dedup();
0 commit comments