Skip to content

Commit

Permalink
Fix build error caused by #665 (#666)
Browse files Browse the repository at this point in the history
  • Loading branch information
cocuh authored Feb 22, 2024
1 parent 79e81a0 commit f91941f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rune/src/fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ pub(crate) fn layout_source(source: &str) -> Result<Vec<u8>, FormattingError> {
/// Format the given source.
pub fn format_source(source: &str) -> Result<String, impl std::error::Error> {
let formatted = layout_source(source)?;
Ok(String::from_utf8(formatted).unwrap())
Ok::<String, FormattingError>(String::from_utf8(formatted).unwrap())
}

0 comments on commit f91941f

Please sign in to comment.