Improve naming of Error variants in iced_test
This commit is contained in:
parent
ed873514e5
commit
1c54f5e3e9
3 changed files with 9 additions and 10 deletions
|
|
@ -118,11 +118,11 @@ where
|
|||
|
||||
match operation.finish() {
|
||||
widget::operation::Outcome::Some(output) => {
|
||||
output.ok_or(Error::NotFound {
|
||||
output.ok_or(Error::SelectorNotFound {
|
||||
selector: description,
|
||||
})
|
||||
}
|
||||
_ => Err(Error::NotFound {
|
||||
_ => Err(Error::SelectorNotFound {
|
||||
selector: description,
|
||||
}),
|
||||
}
|
||||
|
|
@ -148,7 +148,7 @@ where
|
|||
let target = self.find(selector)?;
|
||||
|
||||
let Some(visible_bounds) = target.visible_bounds() else {
|
||||
return Err(Error::NotVisible {
|
||||
return Err(Error::TargetNotVisible {
|
||||
target: Arc::new(target),
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue