We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53928d5 commit f42442bCopy full SHA for f42442b
clippy_lints/src/ptr_offset_with_cast.rs
@@ -134,7 +134,7 @@ enum Method {
134
135
impl Method {
136
fn suggestion(self) -> &'static str {
137
- match *self {
+ match self {
138
Method::Offset => "add",
139
Method::WrappingOffset => "wrapping_add",
140
}
@@ -143,7 +143,7 @@ impl Method {
143
144
impl fmt::Display for Method {
145
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
146
147
Method::Offset => write!(f, "offset"),
148
Method::WrappingOffset => write!(f, "wrapping_offset"),
149
0 commit comments