Skip to content

build.rs: fix println #853

build.rs: fix println

build.rs: fix println #853

GitHub Actions / clippy memflow failed Feb 20, 2024 in 1s

clippy memflow

2 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 2
Warning 0
Note 0
Help 0

Versions

  • rustc 1.76.0 (07dca489a 2024-02-04)
  • cargo 1.76.0 (c84b36747 2024-01-18)
  • clippy 0.1.76 (07dca48 2024-02-04)

Annotations

Check failure on line 57 in src/driver/memflow.rs

See this annotation in the file changed.

@github-actions github-actions / clippy memflow

single-character string constant used as pattern

error: single-character string constant used as pattern
  --> src/driver/memflow.rs:57:33
   |
57 |                     .split_once("=")
   |                                 ^^^ help: try using a `char` instead: `'='`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern
   = note: `-D clippy::single-char-pattern` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::single_char_pattern)]`

Check failure on line 45 in src/driver/memflow.rs

See this annotation in the file changed.

@github-actions github-actions / clippy memflow

deref which would be done by auto-deref

error: deref which would be done by auto-deref
  --> src/driver/memflow.rs:45:62
   |
45 |                         create_connector_args.insert("name", &*init_params.common.unwrap().vm_name);
   |                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&init_params.common.unwrap().vm_name`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
   = note: `-D clippy::explicit-auto-deref` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::explicit_auto_deref)]`