Skip to content

Commit 50bf71f

Browse files
committed
fix: lints
1 parent 96c840d commit 50bf71f

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

crates/hex-simd/src/heap.rs

-4
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ impl FromHexDecode for Vec<u8> {
115115
#[cfg_attr(docsrs, doc(cfg(feature = "alloc")))]
116116
impl FromHexEncode for Box<[u8]> {
117117
#[inline]
118-
#[must_use]
119118
fn from_hex_encode(data: &[u8], case: AsciiCase) -> Self {
120119
let ans = encode_to_boxed_str(data, case);
121120
ans.into_boxed_bytes()
@@ -125,7 +124,6 @@ impl FromHexEncode for Box<[u8]> {
125124
#[cfg_attr(docsrs, doc(cfg(feature = "alloc")))]
126125
impl FromHexEncode for Box<str> {
127126
#[inline]
128-
#[must_use]
129127
fn from_hex_encode(data: &[u8], case: AsciiCase) -> Self {
130128
encode_to_boxed_str(data, case)
131129
}
@@ -134,7 +132,6 @@ impl FromHexEncode for Box<str> {
134132
#[cfg_attr(docsrs, doc(cfg(feature = "alloc")))]
135133
impl FromHexEncode for Vec<u8> {
136134
#[inline]
137-
#[must_use]
138135
fn from_hex_encode(data: &[u8], case: AsciiCase) -> Self {
139136
let ans = encode_to_boxed_str(data, case);
140137
Vec::from(ans.into_boxed_bytes())
@@ -144,7 +141,6 @@ impl FromHexEncode for Vec<u8> {
144141
#[cfg_attr(docsrs, doc(cfg(feature = "alloc")))]
145142
impl FromHexEncode for String {
146143
#[inline]
147-
#[must_use]
148144
fn from_hex_encode(data: &[u8], case: AsciiCase) -> Self {
149145
let ans = encode_to_boxed_str(data, case);
150146
String::from(ans)

crates/hex-simd/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ pub trait FromHexDecode: Sized {
223223
/// Types that can represent a hex string.
224224
pub trait FromHexEncode: Sized {
225225
/// Encodes bytes to a hex string and returns the self type.
226+
#[must_use]
226227
fn from_hex_encode(data: &[u8], case: AsciiCase) -> Self;
227228
}
228229

0 commit comments

Comments
 (0)