Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(src/main): There are unused variables and unused import elements #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xuesongbj
Copy link

@xuesongbj xuesongbj commented Nov 30, 2021

There are unused variables and unused import elements.

$ make debug
cargo build
Compiling toda v0.2.0 (/home/toda)
warning: unused import: Comm
--> src/main.rs:43:29
|
43 | use jsonrpc::{start_server, Comm};
| ^^^^
|
= note: #[warn(unused_imports)] on by default

warning: unused variable: rx
--> src/main.rs:182:14
|
182 | let (tx, rx) = mpsc::channel();
| ^^ help: if this is intentional, prefix it with an underscore: _rx
|
= note: #[warn(unused_variables)] on by default

warning: 2 warnings emitted

Finished dev [unoptimized + debuginfo] target(s) in 14.78s

@xuesongbj xuesongbj force-pushed the fix/main_unused_imports branch 2 times, most recently from 2ab8eae to c6fa822 Compare December 1, 2021 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant