chimei-ruiju.orgへの対応: Parser#parse_with_chimeiruiju
に対するテストコードを修正
#133
Annotations
2 warnings
build
The following actions use a deprecated Node.js version and will be forced to run on node20: giraffate/clippy-action@v1, boa-dev/criterion-compare-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
build:
wasm/src/lib.rs#L45
[clippy] reported by reviewdog 🐶
<pre><code>warning: you should consider adding a `Default` implementation for `Parser`
--> wasm/src/lib.rs:45:5
|
45 | / pub fn new() -> Self {
46 | | #[cfg(feature = "debug")]
47 | | console_error_panic_hook::set_once();
48 | | Parser {
49 | | async_api: Arc::new(Default::default()),
50 | | }
51 | | }
| |_____^
|
= 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:41:8
|
41 | #[warn(clippy::new_without_default)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: try adding this
|
43 + impl Default for Parser {
44 + fn default() -> Self {
45 + Self::new()
46 + }
47 + }
|
</code></pre>
Raw Output:
wasm/src/lib.rs:45:5:w:
<pre><code>warning: you should consider adding a `Default` implementation for `Parser`
--> wasm/src/lib.rs:45:5
|
45 | / pub fn new() -> Self {
46 | | #[cfg(feature = "debug")]
47 | | console_error_panic_hook::set_once();
48 | | Parser {
49 | | async_api: Arc::new(Default::default()),
50 | | }
51 | | }
| |_____^
|
= 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:41:8
|
41 | #[warn(clippy::new_without_default)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: try adding this
|
43 + impl Default for Parser {
44 + fn default() -> Self {
45 + Self::new()
46 + }
47 + }
|
</code></pre>
__END__
|