Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
benluiwj committed Nov 25, 2024
1 parent b972394 commit 4578196
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions check_diff/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ pub struct RustfmtRunner {

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

command.stdin.as_mut().unwrap().write_all(code.as_bytes())?;
let output = command.wait_with_output()?;
let result = std::str::from_utf8(&output.stdout)?;
Ok(result.to_string())
Ok(std::str::from_utf8(&output.stdout)?.to_string())
}
}

Expand Down

0 comments on commit 4578196

Please sign in to comment.