We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b972394 commit 4578196Copy full SHA for 4578196
check_diff/src/lib.rs
@@ -74,7 +74,7 @@ pub struct RustfmtRunner {
74
75
impl CheckDiffRunners {
76
/// Creates a diff generated by running the source and feature binaries on the same file path
77
- pub fn create_diff<'a>(
+ pub fn create_diff(
78
&self,
79
path: &Path,
80
additional_configs: &Option<Vec<String>>,
@@ -135,8 +135,7 @@ impl RustfmtRunner {
135
136
command.stdin.as_mut().unwrap().write_all(code.as_bytes())?;
137
let output = command.wait_with_output()?;
138
- let result = std::str::from_utf8(&output.stdout)?;
139
- Ok(result.to_string())
+ Ok(std::str::from_utf8(&output.stdout)?.to_string())
140
}
141
142
0 commit comments