API失敗時のテストコード: READMEのサンプルコードを修正 #157
Annotations
1 error and 1 warning
Code formatting
Process completed with exit code 1.
|
Code review with clippy:
src/lib.rs#L18
[clippy] reported by reviewdog 🐶
<pre><code>warning: you should consider adding a `Default` implementation for `Parser`
--> src/lib.rs:18:5
|
18 | / pub fn new() -> Self {
19 | | Parser {}
20 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
= note: `#[warn(clippy::new_without_default)]` on by default
help: try adding this
|
16 + impl Default for Parser {
17 + fn default() -> Self {
18 + Self::new()
19 + }
20 + }
|
</code></pre>
Raw Output:
src/lib.rs:18:5:w:
<pre><code>warning: you should consider adding a `Default` implementation for `Parser`
--> src/lib.rs:18:5
|
18 | / pub fn new() -> Self {
19 | | Parser {}
20 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
= note: `#[warn(clippy::new_without_default)]` on by default
help: try adding this
|
16 + impl Default for Parser {
17 + fn default() -> Self {
18 + Self::new()
19 + }
20 + }
|
</code></pre>
__END__
|
The logs for this run have expired and are no longer available.
Loading