cleanup: explicitly use Arc::clone

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2022-06-21 10:35:20 +02:00
parent 53d40ceeab
commit a747328ef3

View File

@ -31,7 +31,7 @@ impl Client {
}
pub async fn main(self: Arc<Self>) {
self.clone().wrap_error(self.main_do()).await
Arc::clone(&self).wrap_error(self.main_do()).await
}
async fn main_do(self: Arc<Self>) -> Result<(), Error> {