You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I happened to run clippy on the code, and there's quite a lot of these:
warning: this import is redundant
--> src/main.rs:7:1
|
7 | use serde_json;
| ^^^^^^^^^^^^^^^ help: remove it entirely
|
= note: `#[warn(clippy::single_component_path_imports)]` on by default
= help:for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports
warning: this import is redundant
--> src/errors.rs:1:1
|
1 | use std;
| ^^^^^^^^ help: remove it entirely
|
= help:for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports
warning: this import is redundant
--> src/errors.rs:2:1
|
2 | use url;
| ^^^^^^^^ help: remove it entirely
|
= help:for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports
warning: this import is redundant
--> src/errors.rs:3:1
|
3 | use tungstenite;
| ^^^^^^^^^^^^^^^^ help: remove it entirely
|
= help:for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports
warning: this import is redundant
--> src/nettfiske.rs:1:1
|
1 | use fern;
| ^^^^^^^^^ help: remove it entirely
|
= help:for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports
warning: this import is redundant
--> src/nettfiske.rs:2:1
|
2 | use chrono;
| ^^^^^^^^^^^ help: remove it entirely
|
= help:for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports
warning:6 warnings emitted
What do you think about this? I'm new to rust, so perhaps this pattern is OK?
The text was updated successfully, but these errors were encountered:
I happened to run
clippy
on the code, and there's quite a lot of these:What do you think about this? I'm new to rust, so perhaps this pattern is OK?
The text was updated successfully, but these errors were encountered: