We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c4163b4 + fa4289c commit 2e9a27aCopy full SHA for 2e9a27a
oqs/src/macros.rs
@@ -35,8 +35,8 @@ macro_rules! newtype_buffer {
35
$name_ref { bytes }
36
}
37
38
- /// Copy this to the owned variant
39
- pub fn to_owned(&self) -> $name {
+ /// Clone this into the owned variant
+ pub fn to_owned(self) -> $name {
40
$name {
41
bytes: self.bytes.to_vec(),
42
@@ -70,6 +70,7 @@ macro_rules! newtype_buffer {
70
71
impl $name {
72
/// Length in bytes
73
+ #[allow(clippy::len_without_is_empty)]
74
pub fn len(&self) -> usize {
75
self.bytes.len()
76
0 commit comments