Commit 643fc73
committed
Minor: Resolved this warning associated with a "Non-Standard" default() method.
When I looked at the warning, I noted that everything could be auto derived.
```
warning: method `default` can be confused for the standard trait method `std::default::Default::default`
--> plotters-backend/src/text.rs:120:9
|
120 | / pub fn default() -> Self {
121 | | Pos {
122 | | h_pos: HPos::Left,
123 | | v_pos: VPos::Top,
124 | | }
125 | | }
| |_________^
|
= help: consider implementing the trait `std::default::Default` or choosing a less ambiguous method name
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#should_implement_trait
= note: `#[warn(clippy::should_implement_trait)]` on by default
```1 parent 7c4ed88 commit 643fc73
1 file changed
+5
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
74 | | - | |
| 75 | + | |
75 | 76 | | |
76 | 77 | | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| |||
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
85 | | - | |
| 87 | + | |
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
| |||
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | 111 | | |
125 | 112 | | |
126 | 113 | | |
| |||
0 commit comments