Skip to content

Commit 9d730ab

Browse files
committed
Fixed clippy and rust docs problem
1 parent 65fcc92 commit 9d730ab

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/uint/boxed/encoding.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ impl BoxedUint {
132132
out.into()
133133
}
134134

135-
/// Create a new [`Uint`] from the provided big endian hex string.
135+
/// Create a new [`BoxedUint`] from the provided big endian hex string.
136136
pub fn from_be_hex(hex: &str, bits_precision: u32) -> Self {
137137
let nlimbs = (bits_precision / Limb::BITS) as usize;
138138
let bytes = hex.as_bytes();

src/uint/boxed/shl.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,12 @@ impl BoxedUint {
122122
let mut result = Self::zero_with_precision(self.bits_precision());
123123
let success = self.shl_vartime_into(&mut result, shift);
124124
// TODO: is this okay?
125-
return (
125+
126+
(
126127
result,
127128
// If success, then return ConstChoice::False since it's not overflowing
128129
success.map_or(ConstChoice::TRUE, |_| ConstChoice::FALSE),
129-
);
130+
)
130131
}
131132

132133
/// Computes `self << 1` in constant-time.

src/uint/boxed/shr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,11 @@ impl BoxedUint {
126126
let mut result = Self::zero_with_precision(self.bits_precision());
127127
let success = self.shr_vartime_into(&mut result, shift);
128128
// TODO: is this okay?
129-
return (
129+
(
130130
result,
131131
// If success, then return ConstChoice::False since it's not overflowing
132132
success.map_or(ConstChoice::TRUE, |_| ConstChoice::FALSE),
133-
);
133+
)
134134
}
135135

136136
/// Computes `self >> 1` in constant-time, returning a true [`Choice`]

0 commit comments

Comments
 (0)