[Rust] Expose a non log specific function for sending logs to a `Lo…
#906
Annotations
4 errors
|
Clippy Check
Error: Clippy has exited with exit code 101
|
|
Clippy Check:
rust/src/logger.rs#L99
error: useless use of `format!`
--> rust/src/logger.rs:99:39
|
99 | if let Ok(msg) = CString::new(format!("{}", msg)) {
| ^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `msg.to_string()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
= note: `-D clippy::useless-format` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::useless_format)]`
|
|
Clippy Check:
rust/src/download/instance.rs#L479
error: type parameter `C` goes unused in function definition
--> rust/src/download/instance.rs:479:38
|
479 | unsafe extern "C" fn cb_free_response<C: CustomDownloadInstance>(
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing the parameter
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters
= note: `-D clippy::extra-unused-type-parameters` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::extra_unused_type_parameters)]`
|
|
Clippy Check:
rust/src/download/instance.rs#L139
error: usage of a legacy numeric method
--> rust/src/download/instance.rs:139:84
|
139 | .progress_callback(self.progress, self.total_length.unwrap_or(u64::max_value()))
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: `-D clippy::legacy-numeric-constants` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::legacy_numeric_constants)]`
help: use the associated constant instead
|
139 | .progress_callback(self.progress, self.total_length.unwrap_or(u64::MAX))
| ~~~
|
Loading