wayland: make object versions type safe
This commit is contained in:
parent
0d7b45d149
commit
e3a1a0b30f
50 changed files with 198 additions and 173 deletions
|
|
@ -3,7 +3,7 @@ use {
|
|||
client::Client,
|
||||
globals::{Global, GlobalName, GlobalsError},
|
||||
leaks::Tracker,
|
||||
object::{Interface, Object},
|
||||
object::{Interface, Object, Version},
|
||||
utils::buffd::{MsgParser, MsgParserError},
|
||||
wire::{wl_registry::*, WlRegistryId},
|
||||
},
|
||||
|
|
@ -62,7 +62,7 @@ impl WlRegistry {
|
|||
actual: bind.version,
|
||||
}));
|
||||
}
|
||||
global.bind(&self.client, bind.id, bind.version)?;
|
||||
global.bind(&self.client, bind.id, Version(bind.version))?;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue