fix(common): Remove < and > from Display impl of FileName::Custom (#8530)

**Description:**

It caused a problem for next.js
This commit is contained in:
Donny/강동윤 2024-01-21 11:32:35 +09:00 committed by GitHub
parent 48c56d10cc
commit 014a6cda82
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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),
}
}
}