mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +00:00
clippy suggestion
This commit is contained in:
parent
6445a5d79d
commit
53928d5367
@ -133,7 +133,7 @@ enum Method {
|
||||
}
|
||||
|
||||
impl Method {
|
||||
fn suggestion(&self) -> &'static str {
|
||||
fn suggestion(self) -> &'static str {
|
||||
match *self {
|
||||
Method::Offset => "add",
|
||||
Method::WrappingOffset => "wrapping_add",
|
||||
|
Loading…
Reference in New Issue
Block a user