Implement display for Pos
This commit is contained in:
parent
26ae7f38b4
commit
5688e03b8a
@ -677,3 +677,9 @@ impl Pos {
|
|||||||
self.column += num;
|
self.column += num;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Display for Pos {
|
||||||
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
|
write!(f, "line:{} col:{}", self.line, self.column)
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user