autocommit 2022-02-05 18:51:17 CET
This commit is contained in:
parent
5eb9186c54
commit
59ce74681a
2 changed files with 24 additions and 2 deletions
|
|
@ -137,7 +137,7 @@ impl ZwpLinuxBufferParamsV1 {
|
|||
Ok(buffer_id)
|
||||
}
|
||||
|
||||
fn create(self: &Rc<Self>, parser: MsgParser<'_, '_>) -> Result<(), CreateError> {
|
||||
fn create(self: &Rc<Self>, parser: MsgParser) -> Result<(), CreateError> {
|
||||
let req: Create = self.parent.client.parse(&**self, parser)?;
|
||||
if self.used.replace(true) {
|
||||
return Err(CreateError::AlreadyUsed);
|
||||
|
|
@ -154,7 +154,7 @@ impl ZwpLinuxBufferParamsV1 {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
fn create_immed(self: &Rc<Self>, parser: MsgParser<'_, '_>) -> Result<(), CreateImmedError> {
|
||||
fn create_immed(self: &Rc<Self>, parser: MsgParser) -> Result<(), CreateImmedError> {
|
||||
let req: CreateImmed = self.parent.client.parse(&**self, parser)?;
|
||||
if self.used.replace(true) {
|
||||
return Err(CreateImmedError::AlreadyUsed);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue