fmt: always forget about fmt

This commit is contained in:
Yiffy Dev 2024-11-02 00:34:03 +05:00
commit 0092e18e05
No known key found for this signature in database
GPG key ID: FB83DFEAFB3F4709

View file

@ -109,19 +109,22 @@ impl Debug for SabryCompilerError {
Self::LightPrint(e) => format!(
"{} at {:?}",
e.kind,
e.loc.clone()
e.loc
.clone()
.map(|l| format!("file {}, line {}, col {}", l.filename, l.line, l.column))
),
Self::GrassCompile(err) => format!("{err}"),
Self::LightMinify(e) => format!(
"{} at {:?}",
e.kind,
e.loc.clone()
e.loc
.clone()
.map(|l| format!("file {}, line {}, col {}", l.filename, l.line, l.column))
),
Self::LightParse { kind, loc } => format!(
"{kind} at {:?}",
loc.clone().map(|l| format!("file {}, line {}, col {}", l.filename, l.line, l.column))
loc.clone()
.map(|l| format!("file {}, line {}, col {}", l.filename, l.line, l.column))
),
};