mirror of
https://github.com/swc-project/swc.git
synced 2024-10-04 20:28:43 +03:00
fix(common): Remove <
and >
from Display
impl of FileName::Custom
(#8530)
**Description:** It caused a problem for next.js
This commit is contained in:
parent
48c56d10cc
commit
014a6cda82
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -272,7 +272,10 @@ impl std::fmt::Display for FileName {
|
||||
FileName::Anon => write!(fmt, "<anon>"),
|
||||
FileName::ProcMacroSourceCode => write!(fmt, "<proc-macro source code>"),
|
||||
FileName::Url(ref u) => write!(fmt, "{}", u),
|
||||
FileName::Custom(ref s) | FileName::Internal(ref s) => write!(fmt, "<{}>", s),
|
||||
FileName::Custom(ref s) => {
|
||||
write!(fmt, "{}", s)
|
||||
}
|
||||
FileName::Internal(ref s) => write!(fmt, "<{}>", s),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user