From 5adb35a76cd307531edbc440b35d11714c11da57 Mon Sep 17 00:00:00 2001 From: Pankratov Dmitry Date: Fri, 3 May 2024 09:21:42 +0200 Subject: [PATCH] Fixed clippy warning --- ipp/src/value.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipp/src/value.rs b/ipp/src/value.rs index 8a49f11..2841c63 100644 --- a/ipp/src/value.rs +++ b/ipp/src/value.rs @@ -92,7 +92,7 @@ impl IppValue { IppValue::Uri(_) => ValueTag::Uri as u8, IppValue::UriScheme(_) => ValueTag::UriScheme as u8, IppValue::MimeMediaType(_) => ValueTag::MimeMediaType as u8, - IppValue::Array(ref array) => array.get(0).map(|v| v.to_tag()).unwrap_or(ValueTag::Unknown as u8), + IppValue::Array(ref array) => array.first().map(|v| v.to_tag()).unwrap_or(ValueTag::Unknown as u8), IppValue::Collection(_) => ValueTag::BegCollection as u8, IppValue::DateTime { .. } => ValueTag::DateTime as u8, IppValue::MemberAttrName(_) => ValueTag::MemberAttrName as u8,