remove extra construction

This commit is contained in:
yggverse 2024-11-30 04:24:47 +02:00
parent 9e3176ca00
commit 8618b31570

View file

@ -125,14 +125,8 @@ impl Client {
request_async( request_async(
connection, connection,
uri.to_string(), uri.to_string(),
match priority { priority,
Some(priority) => Some(priority), cancellable,
None => Some(Priority::DEFAULT),
},
match cancellable {
Some(ref cancellable) => Some(cancellable.clone()),
None => None::<Cancellable>,
},
callback, // result callback, // result
) )
} }