Skip to content

Commit 230d43b

Browse files
Update packages/check/src/main.rs
Co-authored-by: Christoph Otter <chris@confio.gmbh>
1 parent ac888d3 commit 230d43b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/check/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ fn check_contract(
108108
// Potentially lossy filename or path as used as a short prefix for the output
109109
let filename_identifier: String = Path::new(path)
110110
.file_name()
111-
.map(|f| String::from_utf8_lossy(f.as_encoded_bytes()).to_string())
111+
.map(|f| f.to_string_lossy().into_owned())
112112
.unwrap_or(path.to_string());
113113
let prefix = format!(" {}: ", filename_identifier);
114114
let logs = if verbose {

0 commit comments

Comments
 (0)