Commit 9cd548bd authored by Ben Boeckel's avatar Ben Boeckel

prepare: silence clippy

parent a7e7b39d
...@@ -407,7 +407,7 @@ impl PreparingGitWorkArea { ...@@ -407,7 +407,7 @@ impl PreparingGitWorkArea {
.map_err(WorkAreaError::temp_directory)?; .map_err(WorkAreaError::temp_directory)?;
let workarea = Self { let workarea = Self {
context: context, context,
dir: tempdir, dir: tempdir,
}; };
...@@ -613,7 +613,7 @@ impl GitWorkArea { ...@@ -613,7 +613,7 @@ impl GitWorkArea {
let mut gitfile = File::create(gitfiledir.join(".git")).map_err(|err| { let mut gitfile = File::create(gitfiledir.join(".git")).map_err(|err| {
WorkAreaError::submodule(SubmoduleIntent::CreateGitFile, name as &str, err) WorkAreaError::submodule(SubmoduleIntent::CreateGitFile, name as &str, err)
})?; })?;
write!(gitfile, "gitdir: {}\n", gitdir.display()).map_err(|err| { writeln!(gitfile, "gitdir: {}", gitdir.display()).map_err(|err| {
WorkAreaError::submodule(SubmoduleIntent::WriteGitFile, name as &str, err) WorkAreaError::submodule(SubmoduleIntent::WriteGitFile, name as &str, err)
})?; })?;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment