Use older Arc method

This commit is contained in:
cetra3 2023-06-15 16:34:53 +09:30
parent 11bc7de2d5
commit 4126c77394

View file

@ -329,7 +329,7 @@ impl ActivityQueue {
handle.await?;
}
Arc::into_inner(self.stats).ok_or_else(|| anyhow!("Could not retrieve stats"))
Arc::try_unwrap(self.stats).map_err(|_| anyhow!("Could not retrieve stats"))
}
}