Add proper string parser for Instruction

This commit is contained in:
Héctor Ramón Jiménez 2025-09-11 06:20:04 +02:00
parent faad8e2ed0
commit bc9951f84f
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 105 additions and 16 deletions

View file

@ -63,7 +63,7 @@ impl Selector for &str {
}
fn description(&self) -> String {
format!("text == \"{}\"", self.escape_default())
format!("text == {self:?}")
}
}
@ -91,7 +91,7 @@ impl Selector for Id {
}
fn description(&self) -> String {
format!("id == {:?}", self)
format!("id == {self:?}")
}
}
@ -106,7 +106,7 @@ impl Selector for Point {
}
fn description(&self) -> String {
format!("bounds contains {:?}", self)
format!("bounds contains {self:?}")
}
}