1
0
Fork 0
forked from wry/wry

autocommit 2022-02-05 18:51:17 CET

This commit is contained in:
Julian Orth 2022-02-05 18:51:17 +01:00
parent 5eb9186c54
commit 59ce74681a
2 changed files with 24 additions and 2 deletions

View file

@ -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);