Skip to content

Commit

Permalink
Use to_owned instead of to_string
Browse files Browse the repository at this point in the history
  • Loading branch information
theodore-s-beers committed Feb 25, 2024
1 parent 9e2ebab commit f5bd9b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ pub fn pandoc_plain(input: &str) -> Result<String, anyhow::Error> {

let output = str::from_utf8(&pandoc.stdout)
.context("Failed to convert Pandoc output to string")?
.to_string();
.to_owned();

Ok(output)
}
Expand Down

0 comments on commit f5bd9b9

Please sign in to comment.