We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0a4988 commit 737f62cCopy full SHA for 737f62c
clippy_lints/src/needless_fn_self_type.rs
@@ -13,6 +13,13 @@ declare_clippy_lint! {
13
///
14
/// **Example:**
15
/// ```rust
16
+ /// enum ValType {
17
+ /// I32,
18
+ /// I64,
19
+ /// F32,
20
+ /// F64,
21
+ /// }
22
+ ///
23
/// impl ValType {
24
/// pub fn bytes(self: Self) -> usize {
25
/// match self {
@@ -26,6 +33,13 @@ declare_clippy_lint! {
26
33
/// Could be rewritten as
27
34
28
35
36
37
38
39
40
41
42
29
43
30
44
/// pub fn bytes(self) -> usize {
31
45
0 commit comments