表記ゆれの対応をrelease/v0.2.0-rc.2にマージ #178
Annotations
2 warnings
The following actions use a deprecated Node.js version and will be forced to run on node20: giraffate/clippy-action@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Code review with clippy:
wasm/src/lib.rs#L43
[clippy] reported by reviewdog 🐶
<pre><code>warning: you should consider adding a `Default` implementation for `Parser`
--> wasm/src/lib.rs:43:5
|
43 | / pub fn new() -> Self {
44 | | #[cfg(feature = "debug")]
45 | | console_error_panic_hook::set_once();
46 | | Parser {
47 | | parser: parser::Parser::default(),
48 | | }
49 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
note: the lint level is defined here
--> wasm/src/lib.rs:39:8
|
39 | #[warn(clippy::new_without_default)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: try adding this
|
41 + impl Default for Parser {
42 + fn default() -> Self {
43 + Self::new()
44 + }
45 + }
|
</code></pre>
Raw Output:
wasm/src/lib.rs:43:5:w:
<pre><code>warning: you should consider adding a `Default` implementation for `Parser`
--> wasm/src/lib.rs:43:5
|
43 | / pub fn new() -> Self {
44 | | #[cfg(feature = "debug")]
45 | | console_error_panic_hook::set_once();
46 | | Parser {
47 | | parser: parser::Parser::default(),
48 | | }
49 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
note: the lint level is defined here
--> wasm/src/lib.rs:39:8
|
39 | #[warn(clippy::new_without_default)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: try adding this
|
41 + impl Default for Parser {
42 + fn default() -> Self {
43 + Self::new()
44 + }
45 + }
|
</code></pre>
__END__
|
Loading