Skip to content

Commit

Permalink
Fixed clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ancwrd1 committed May 3, 2024
1 parent 222a91f commit 5adb35a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipp/src/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5adb35a

Please sign in to comment.