mirror of
https://github.com/sharkdp/bat
synced 2026-08-05 19:11:42 +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 {
|
fn create_and_track_file(repo: &tempfile::TempDir, filename: &str) -> PathBuf {
|
||||||
let filepath = repo.path().join(filename);
|
let filepath = repo.path().join(filename);
|
||||||
std::fs::write(&filepath, "file\n").expect("can write file");
|
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"]);
|
git(repo.path(), &["commit", "-m", "initial"]);
|
||||||
|
|
||||||
filepath.to_owned()
|
filepath.to_owned()
|
||||||
|
|||||||
Reference in New Issue
Block a user