Skip to content

Commit 83df9c4

Browse files
authored
chore(clippy): 1.80 rust clippy list paragraph ident (#1661)
1 parent 1163e29 commit 83df9c4

File tree

5 files changed

+14
-11
lines changed

5 files changed

+14
-11
lines changed

bins/revme/src/cmd/bytecode.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@ impl Cmd {
2727
return;
2828
}
2929
if bytes[0] == 0xEF {
30-
let Ok(eof) = Eof::decode(bytes) else {
31-
eprintln!("Invalid EOF bytecode");
32-
return;
33-
};
34-
println!("Decode: {:#?}", eof);
35-
let res = validate_eof_inner(&eof, None);
36-
println!("Validation: {:#?}", res);
30+
match Eof::decode(bytes) {
31+
Ok(eof) => {
32+
println!("Decoding: {:#?}", eof);
33+
let res = validate_eof_inner(&eof, None);
34+
println!("Validation: {:#?}", res);
35+
}
36+
Err(e) => eprintln!("Decoding Error: {:#?}", e),
37+
}
3738
} else {
3839
print_eof_code(&bytes)
3940
}

crates/interpreter/src/gas/calc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ pub const fn selfdestruct_cost(spec_id: SpecId, res: SelfDestructResult) -> u64
287287
/// * Account access gas. after berlin it can be cold or warm.
288288
/// * Transfer value gas. If value is transferred and balance of target account is updated.
289289
/// * If account is not existing and needs to be created. After Spurious dragon
290-
/// this is only accounted if value is transferred.
290+
/// this is only accounted if value is transferred.
291291
#[inline]
292292
pub const fn call_cost(
293293
spec_id: SpecId,

crates/precompile/src/bls12_381/pairing.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ const INPUT_LENGTH: usize = 384;
2626
/// following structure:
2727
/// * 128 bytes of G1 point encoding
2828
/// * 256 bytes of G2 point encoding
29+
///
2930
/// Each point is expected to be in the subgroup of order q.
3031
/// Output is 32 bytes where first 31 bytes are equal to 0x00 and the last byte
3132
/// is 0x01 if pairing result is equal to the multiplicative identity in a pairing
3233
/// target field and 0x00 otherwise.
34+
///
3335
/// See also: <https://eips.ethereum.org/EIPS/eip-2537#abi-for-pairing>
3436
pub(super) fn pairing(input: &Bytes, gas_limit: u64) -> PrecompileResult {
3537
let input_len = input.len();

crates/precompile/src/bls12_381/utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ pub(super) fn remove_padding(input: &[u8]) -> Result<&[u8; FP_LENGTH], Precompil
5656
///
5757
/// From [EIP-2537](https://eips.ethereum.org/EIPS/eip-2537):
5858
/// * A scalar for the multiplication operation is encoded as 32 bytes by performing BigEndian
59-
/// encoding of the corresponding (unsigned) integer.
59+
/// encoding of the corresponding (unsigned) integer.
6060
///
6161
/// We do not check that the scalar is a canonical Fr element, because the EIP specifies:
6262
/// * The corresponding integer is not required to be less than or equal than main subgroup order
63-
/// `q`.
63+
/// `q`.
6464
pub(super) fn extract_scalar_input(input: &[u8]) -> Result<blst_scalar, PrecompileError> {
6565
if input.len() != SCALAR_LENGTH {
6666
return Err(PrecompileError::Other(format!(

crates/revm/src/db/states/state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ impl<DB: Database> State<DB> {
204204
/// NOTE: If either:
205205
/// * The [State] has not been built with [StateBuilder::with_bundle_update], or
206206
/// * The [State] has a [TransitionState] set to `None` when
207-
/// [State::merge_transitions] is called,
207+
/// [State::merge_transitions] is called,
208208
///
209209
/// this will panic.
210210
pub fn take_bundle(&mut self) -> BundleState {

0 commit comments

Comments
 (0)