Skip to content

Commit f42442b

Browse files
committed
dont deref
1 parent 53928d5 commit f42442b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/ptr_offset_with_cast.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ enum Method {
134134

135135
impl Method {
136136
fn suggestion(self) -> &'static str {
137-
match *self {
137+
match self {
138138
Method::Offset => "add",
139139
Method::WrappingOffset => "wrapping_add",
140140
}
@@ -143,7 +143,7 @@ impl Method {
143143

144144
impl fmt::Display for Method {
145145
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
146-
match *self {
146+
match self {
147147
Method::Offset => write!(f, "offset"),
148148
Method::WrappingOffset => write!(f, "wrapping_offset"),
149149
}

0 commit comments

Comments
 (0)