Skip to content

Commit a467fcf

Browse files
committed
tree: Fix Rust 1.89 lifetime lint
Add the omitted lifetimes. Signed-off-by: Colin Walters <walters@verbum.org>
1 parent 0fc4af3 commit a467fcf

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

rust/src/fedora_integration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ mod bodhi {
3636
update: BodhiUpdate,
3737
}
3838

39-
pub(crate) fn canonicalize_update_id(id: &str) -> Cow<str> {
39+
pub(crate) fn canonicalize_update_id(id: &str) -> Cow<'_, str> {
4040
let id = match id.strip_prefix(BODHI_URL_PREFIX) {
4141
Some(s) => return Cow::Borrowed(s),
4242
None => id,

rust/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ pub mod ffi {
515515
type TokioEnterGuard<'a>;
516516

517517
fn tokio_handle_get() -> Box<TokioHandle>;
518-
fn enter(self: &TokioHandle) -> Box<TokioEnterGuard>;
518+
fn enter(self: &TokioHandle) -> Box<TokioEnterGuard<'_>>;
519519
}
520520

521521
// scripts.rs

rust/src/tokio_ffi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub(crate) fn tokio_handle_get() -> Box<TokioHandle> {
1111
}
1212

1313
impl TokioHandle {
14-
pub(crate) fn enter(&self) -> Box<TokioEnterGuard> {
14+
pub(crate) fn enter(&self) -> Box<TokioEnterGuard<'_>> {
1515
Box::new(TokioEnterGuard(self.0.enter()))
1616
}
1717
}

rust/src/variant_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::borrow::Cow;
66
use glib::translate::*;
77
use ostree_ext::glib;
88

9-
pub(crate) fn byteswap_be_to_native(v: &glib::Variant) -> Cow<glib::Variant> {
9+
pub(crate) fn byteswap_be_to_native(v: &glib::Variant) -> Cow<'_, glib::Variant> {
1010
if cfg!(target_endian = "big") {
1111
Cow::Borrowed(v)
1212
} else {

0 commit comments

Comments
 (0)