1
0
mirror of https://github.com/ostreedev/ostree.git synced 2026-02-05 09:44:55 +01:00

rust: Fix Rust 1.89 lifetime lint

This commit is contained in:
Colin Walters
2025-09-29 14:21:53 +02:00
parent b3fbab51df
commit 1fb5afa0fe

View File

@@ -132,7 +132,7 @@ impl Repo {
pub fn auto_transaction<P: IsA<gio::Cancellable>>(
&self,
cancellable: Option<&P>,
) -> Result<TransactionGuard, glib::Error> {
) -> Result<TransactionGuard<'_>, glib::Error> {
let _ = self.prepare_transaction(cancellable)?;
Ok(TransactionGuard { repo: Some(self) })
}