fmt: always forget about fmt

This commit is contained in:
Yiffy Dev 2024-11-02 00:34:03 +05:00 • committed by spushk
commit 2247f4cdfa
Signed by: spushk
GPG key ID: 7797B761E105E8AA

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