wayland: make object versions type safe
This commit is contained in:
parent
0d7b45d149
commit
e3a1a0b30f
50 changed files with 198 additions and 173 deletions
|
|
@ -104,7 +104,7 @@ macro_rules! global_base {
|
|||
self: std::rc::Rc<Self>,
|
||||
client: &'a std::rc::Rc<crate::client::Client>,
|
||||
id: crate::object::ObjectId,
|
||||
version: u32,
|
||||
version: crate::object::Version,
|
||||
) -> Result<(), crate::globals::GlobalsError> {
|
||||
if let Err(e) = self.bind_(id.into(), client, version) {
|
||||
return Err(crate::globals::GlobalsError::GlobalError(e.into()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue