Skip to content

Commit 4366804

Browse files
committed
clippy: fix "hiding a lifetime" warning
from mismatched_lifetime_syntaxes lint
1 parent f10f452 commit 4366804

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/uu/lsipc/src/display.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,10 @@ pub(crate) fn describe_size(size: u64, in_bytes: bool) -> Option<Cow<'static, CS
246246
Some(Cow::Owned(CString::new(size_desc(size, in_bytes)).unwrap()))
247247
}
248248

249-
pub(crate) fn describe_owner(users: &mut UserDbRecordRef, uid: libc::uid_t) -> Option<Cow<CStr>> {
249+
pub(crate) fn describe_owner(
250+
users: &mut UserDbRecordRef,
251+
uid: libc::uid_t,
252+
) -> Option<Cow<'_, CStr>> {
250253
if let Some(name) = users.for_id(uid).name() {
251254
Some(Cow::Borrowed(name))
252255
} else {

0 commit comments

Comments
 (0)