Add proper string parser for Instruction
This commit is contained in:
parent
faad8e2ed0
commit
bc9951f84f
2 changed files with 105 additions and 16 deletions
|
|
@ -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:?}")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue