Skip to content

Commit d68420b

Browse files
Use .into() to create a FileName::Real
1 parent 9860bfc commit d68420b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_span/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ impl From<PathBuf> for FileName {
124124
fn from(p: PathBuf) -> Self {
125125
assert!(!p.to_string_lossy().ends_with('>'));
126126
if cfg!(not(windows)) {
127-
FileName::Real(p.canonlicalize().unwrap_or(p))
127+
FileName::Real(p.canonicalize().unwrap_or(p))
128128
} else {
129129
FileName::Real(p)
130130
}

0 commit comments

Comments
 (0)