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:
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user