autocommit 2022-03-29 15:40:59 CEST
This commit is contained in:
parent
6ebf731aea
commit
9842264fad
39 changed files with 121 additions and 92 deletions
|
|
@ -367,12 +367,10 @@ impl Client {
|
|||
pub fn lookup<Id: WaylandObjectLookup>(&self, id: Id) -> Result<Rc<Id::Object>, ClientError> {
|
||||
match Id::lookup(self, id) {
|
||||
Some(t) => Ok(t),
|
||||
_ => {
|
||||
return Err(ClientError::LookupError(LookupError {
|
||||
interface: Id::INTERFACE,
|
||||
id: id.into(),
|
||||
}))
|
||||
}
|
||||
_ => Err(ClientError::LookupError(LookupError {
|
||||
interface: Id::INTERFACE,
|
||||
id: id.into(),
|
||||
})),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue