Skip to content

Commit b02df27

Browse files
author
İlker BALTACI
committed
attribute_type deref
Signed-off-by: İlker BALTACI <[email protected]>
1 parent 71b3711 commit b02df27

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cryptoki/src/object.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -598,9 +598,7 @@ impl Attribute {
598598
Attribute::VerifyRecover(_) => AttributeType::VerifyRecover,
599599
Attribute::Wrap(_) => AttributeType::Wrap,
600600
Attribute::WrapWithTrusted(_) => AttributeType::WrapWithTrusted,
601-
Attribute::Unhandled(attribute_type, _) => {
602-
AttributeType::Unhandled(attribute_type.clone())
603-
}
601+
Attribute::Unhandled(attribute_type, _) => AttributeType::Unhandled(*attribute_type),
604602
}
605603
}
606604

0 commit comments

Comments
 (0)