8000 Fix build error caused by #665 (#666) · rune-rs/rune@f91941f · GitHub
[go: up one dir, main page]

Skip to content

Commit f91941f

Browse files
authored
Fix build error caused by #665 (#666)
1 parent 79e81a0 commit f91941f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/rune/src/fmt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ pub(crate) fn layout_source(source: &str) -> Result<Vec<u8>, FormattingError> {
3131
/// Format the given source.
3232
pub fn format_source(source: &str) -> Result<String, impl std::error::Error> {
3333
let formatted = layout_source(source)?;
34-
Ok(String::from_utf8(formatted).unwrap())
34+
Ok::<String, FormattingError>(String::from_utf8(formatted).unwrap())
3535
}

0 commit comments

Comments
 (0)
0