Skip to content

Commit 4578196

Browse files
committed
cleanup
1 parent b972394 commit 4578196

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

check_diff/src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ pub struct RustfmtRunner {
7474

7575
impl CheckDiffRunners {
7676
/// Creates a diff generated by running the source and feature binaries on the same file path
77-
pub fn create_diff<'a>(
77+
pub fn create_diff(
7878
&self,
7979
path: &Path,
8080
additional_configs: &Option<Vec<String>>,
@@ -135,8 +135,7 @@ impl RustfmtRunner {
135135

136136
command.stdin.as_mut().unwrap().write_all(code.as_bytes())?;
137137
let output = command.wait_with_output()?;
138-
let result = std::str::from_utf8(&output.stdout)?;
139-
Ok(result.to_string())
138+
Ok(std::str::from_utf8(&output.stdout)?.to_string())
140139
}
141140
}
142141

0 commit comments

Comments
 (0)