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
warning: unused variable: x
--> src\hardware\passthru\mod.rs:811:13
|
811 | fn from(x: PoisonError) -> Self {
| ^ help: if this is intentional, prefix it with an underscore: _x
|
= note: #[warn(unused_variables)] on by default
warning: unused variable: x
--> src\hardware\passthru\mod.rs:820:13
|
820 | fn from(x: PoisonError) -> Self {
| ^ help: if this is intentional, prefix it with an underscore: _x
warning: variable does not need to be mutable
--> src\kwp2000\read_dtc_by_status.rs:90:9
|
90 | let mut res: Vec = Vec::new();
| ----^^^
| |
| help: remove this mut
|
= note: #[warn(unused_mut)] on by default
warning: associated function is never used: get_version
--> src\hardware\passthru\lib_funcs.rs:291:12
|
291 | pub fn get_version(&self, dev_id: u32) -> PassthruResult {
| ^^^^^^^^^^^
|
= note: #[warn(dead_code)] on by default
warning: associated function is never used: stop_msg_filter
--> src\hardware\passthru\lib_funcs.rs:439:12
|
439 | pub fn stop_msg_filter(&self, channel_id: u32, filter_id: u32) -> PassthruResult<()> {
| ^^^^^^^^^^^^^^^
warning: unused Result that must be used
--> src\hardware\passthru\mod.rs:464:17
|
464 | self.close();
| ^^^^^^^^^^^^^
|
= note: #[warn(unused_must_use)] on by default
= note: this Result may be an Err variant, which should be handled
warning: unused Result that must be used
--> src\hardware\passthru\mod.rs:636:17
|
636 | self.close();
| ^^^^^^^^^^^^^
|
= note: this Result may be an Err variant, which should be handled
warning: 12 warnings emitted`
The text was updated successfully, but these errors were encountered:
this language is new to me, build error is -
warning: unused imports:
BorrowMut,
Borrow,
LockResult,
cell::RefCell,
convert::TryInto,
default--> src\hardware\passthru\mod.rs:22:14 | 22 | borrow::{Borrow, BorrowMut}, | ^^^^^^ ^^^^^^^^^ 23 | cell::RefCell, | ^^^^^^^^^^^^^ 24 | convert::TryInto, | ^^^^^^^^^^^^^^^^ 25 | default, | ^^^^^^^ 26 | ffi::c_void, 27 | sync::{Arc, LockResult, Mutex, PoisonError}, | ^^^^^^^^^^ | = note:
#[warn(unused_imports)]` on by defaultwarning: unused import:
RegValue
--> src\hardware\passthru\mod.rs:35:22
|
35 | use winreg::{RegKey, RegValue};
| ^^^^^^^^
warning: unused import:
RwLock
--> src\hardware\passthru\lib_funcs.rs:5:22
|
5 | use std::sync::{Arc, RwLock};
| ^^^^^^
warning: unused import:
winreg::enums::*
--> src\hardware\passthru\lib_funcs.rs:9:5
|
9 | use winreg::enums::*;
| ^^^^^^^^^^^^^^^^
warning: unused imports:
RegKey
,RegValue
--> src\hardware\passthru\lib_funcs.rs:12:14
|
12 | use winreg::{RegKey, RegValue};
| ^^^^^^ ^^^^^^^^
warning: unused variable:
x
--> src\hardware\passthru\mod.rs:811:13
|
811 | fn from(x: PoisonError) -> Self {
| ^ help: if this is intentional, prefix it with an underscore:
_x
|
= note:
#[warn(unused_variables)]
on by defaultwarning: unused variable:
x
--> src\hardware\passthru\mod.rs:820:13
|
820 | fn from(x: PoisonError) -> Self {
| ^ help: if this is intentional, prefix it with an underscore:
_x
warning: variable does not need to be mutable
--> src\kwp2000\read_dtc_by_status.rs:90:9
|
90 | let mut res: Vec = Vec::new();
| ----^^^
| |
| help: remove this
mut
|
= note:
#[warn(unused_mut)]
on by defaultwarning: associated function is never used:
get_version
--> src\hardware\passthru\lib_funcs.rs:291:12
|
291 | pub fn get_version(&self, dev_id: u32) -> PassthruResult {
| ^^^^^^^^^^^
|
= note:
#[warn(dead_code)]
on by defaultwarning: associated function is never used:
stop_msg_filter
--> src\hardware\passthru\lib_funcs.rs:439:12
|
439 | pub fn stop_msg_filter(&self, channel_id: u32, filter_id: u32) -> PassthruResult<()> {
| ^^^^^^^^^^^^^^^
warning: unused
Result
that must be used--> src\hardware\passthru\mod.rs:464:17
|
464 | self.close();
| ^^^^^^^^^^^^^
|
= note:
#[warn(unused_must_use)]
on by default= note: this
Result
may be anErr
variant, which should be handledwarning: unused
Result
that must be used--> src\hardware\passthru\mod.rs:636:17
|
636 | self.close();
| ^^^^^^^^^^^^^
|
= note: this
Result
may be anErr
variant, which should be handledwarning: 12 warnings emitted`
The text was updated successfully, but these errors were encountered: