1
0
mirror of https://github.com/sharkdp/bat synced 2026-07-17 16:03:19 +00:00

fix immediate dereference of reference

This commit is contained in:
blinxen
2026-04-27 23:34:50 +02:00
parent f9eed8d619
commit df164cc2e3
+1 -1
View File
@@ -116,7 +116,7 @@ mod tests {
fn create_and_track_file(repo: &tempfile::TempDir, filename: &str) -> PathBuf {
let filepath = repo.path().join(filename);
std::fs::write(&filepath, "file\n").expect("can write file");
git(repo.path(), &["add", &filename]);
git(repo.path(), &["add", filename]);
git(repo.path(), &["commit", "-m", "initial"]);
filepath.to_owned()