MCPcopy Create free account
hub / github.com/astral-sh/ruff / fmt

Method fmt

crates/ruff_python_parser/src/error.rs:32–34  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter)

Source from the content-addressed store, hash-verified

30
31impl fmt::Display for ParseError {
32 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
33 write!(f, "{} at byte range {:?}", self.error, self.location)
34 }
35}
36
37impl From<LexicalError> for ParseError {

Callers

nothing calls this directly

Calls 1

write_strMethod · 0.45

Tested by

no test coverage detected