diff --git a/crates/rune/src/fmt.rs b/crates/rune/src/fmt.rs index 301fbb224..2da05acdd 100644 --- a/crates/rune/src/fmt.rs +++ b/crates/rune/src/fmt.rs @@ -31,5 +31,5 @@ pub(crate) fn layout_source(source: &str) -> Result, FormattingError> { /// Format the given source. pub fn format_source(source: &str) -> Result { let formatted = layout_source(source)?; - Ok(String::from_utf8(formatted).unwrap()) + Ok::(String::from_utf8(formatted).unwrap()) }