Skip to content

Commit 2947ec6

Browse files
grandizzyDaniPopes
andauthored
Update crates/compilers/src/lib.rs
Co-authored-by: DaniPopes <[email protected]>
1 parent 8138172 commit 2947ec6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/compilers/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ fn replace_source_content<'a>(
918918
offset += new_value.len() as isize - (end - start) as isize;
919919
}
920920

921-
String::from_utf8_lossy(&content).to_string()
921+
String::from_utf8(content).unwrap()
922922
}
923923

924924
#[cfg(test)]

0 commit comments

Comments
 (0)