replace the closure with the function itself

This commit is contained in:
yggverse 2024-11-30 02:01:15 +02:00
parent 7db362aadc
commit 2db7d77f43

View file

@ -123,7 +123,7 @@ impl Client {
Some(ref cancellable) => Some(cancellable.clone()),
None => None::<Cancellable>,
},
move |result| callback(result),
callback,
)
}
Err(reason) => callback(Err(Error::Connection(reason))),