Skip to content

Commit 53928d5

Browse files
committed
clippy suggestion
1 parent 6445a5d commit 53928d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/ptr_offset_with_cast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ enum Method {
133133
}
134134

135135
impl Method {
136-
fn suggestion(&self) -> &'static str {
136+
fn suggestion(self) -> &'static str {
137137
match *self {
138138
Method::Offset => "add",
139139
Method::WrappingOffset => "wrapping_add",

0 commit comments

Comments
 (0)