Skip to content

Commit 50a3784

Browse files
refactor: fix clippy warnings;
1 parent 88da6fd commit 50a3784

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/asn1/scheme/strings.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ pub fn octet_string(props: &OctetStringNodeProps) -> Html {
119119
}
120120
}
121121
None => {
122-
let encoded_octets = if octets.len() % 2 == 0
122+
let encoded_octets = if octets.len().is_multiple_of(2)
123123
&& let Ok(s) = String::from_utf16(&{
124124
octets
125125
.chunks(2)

src/common/bytes_viewer.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ use yew::{Html, Properties, classes, function_component, html};
22

33
use crate::common::hex_format_byte;
44

5+
#[allow(dead_code)]
56
#[derive(PartialEq, Eq, Properties)]
67
pub struct BytesViewerProps {
78
pub bytes: Vec<u8>,

0 commit comments

Comments
 (0)