Skip to content

Commit fd63a5d

Browse files
authored
chore: fix clippy (#12167)
1 parent 3f82ca4 commit fd63a5d

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

crates/cast/src/rlp_converter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::fmt;
1111
#[derive(Clone, Debug, PartialEq, Eq)]
1212
pub enum Item {
1313
Data(Vec<u8>),
14-
Array(Vec<Item>),
14+
Array(Vec<Self>),
1515
}
1616

1717
impl Encodable for Item {

crates/chisel/src/executor.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -415,22 +415,22 @@ enum Type {
415415
Builtin(DynSolType),
416416

417417
/// (type)
418-
Array(Box<Type>),
418+
Array(Box<Self>),
419419

420420
/// (type, length)
421-
FixedArray(Box<Type>, usize),
421+
FixedArray(Box<Self>, usize),
422422

423423
/// (type, index)
424-
ArrayIndex(Box<Type>, Option<usize>),
424+
ArrayIndex(Box<Self>, Option<usize>),
425425

426426
/// (types)
427-
Tuple(Vec<Option<Type>>),
427+
Tuple(Vec<Option<Self>>),
428428

429429
/// (name, params, returns)
430-
Function(Box<Type>, Vec<Option<Type>>, Vec<Option<Type>>),
430+
Function(Box<Self>, Vec<Option<Self>>, Vec<Option<Self>>),
431431

432432
/// (lhs, rhs)
433-
Access(Box<Type>, String),
433+
Access(Box<Self>, String),
434434

435435
/// (types)
436436
Custom(Vec<String>),

crates/common/src/slot_identifier.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub struct SlotInfo {
4444
///
4545
/// This is populated when a struct's members / fields are packed in a single slot.
4646
#[serde(skip_serializing_if = "Option::is_none")]
47-
pub members: Option<Vec<SlotInfo>>,
47+
pub members: Option<Vec<Self>>,
4848
/// Decoded values (if available) - used for struct members
4949
#[serde(skip_serializing_if = "Option::is_none")]
5050
pub decoded: Option<DecodedSlotValues>,

crates/doc/src/parser/item.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub struct ParseItem {
1313
/// Item comments.
1414
pub comments: Comments,
1515
/// Children items.
16-
pub children: Vec<ParseItem>,
16+
pub children: Vec<Self>,
1717
/// Formatted code string.
1818
pub code: String,
1919
}

0 commit comments

Comments
 (0)