mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 06:28:42 +00:00
clippy suggestion
This commit is contained in:
parent
6445a5d79d
commit
53928d5367
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue