Skip to content

streaming_data_service: improvements #152

streaming_data_service: improvements

streaming_data_service: improvements #152

GitHub Actions / clippy failed Nov 30, 2023 in 1s

clippy

2 errors

Details

Results

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

Versions

  • rustc 1.74.0 (79e9716c9 2023-11-13)
  • cargo 1.74.0 (ecb9851af 2023-10-18)
  • clippy 0.1.74 (79e9716 2023-11-13)

Annotations

Check failure on line 116 in src/streaming_data_service/data_transfer.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this expression creates a reference which is immediately dereferenced by the compiler

error: this expression creates a reference which is immediately dereferenced by the compiler
   --> src/streaming_data_service/data_transfer.rs:116:36
    |
116 |                 Ok(with_xz_support(&file_name, StreamReader::new(stream)))
    |                                    ^^^^^^^^^^ help: change this to: `file_name`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Check failure on line 105 in src/streaming_data_service/data_transfer.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this expression creates a reference which is immediately dereferenced by the compiler

error: this expression creates a reference which is immediately dereferenced by the compiler
   --> src/streaming_data_service/data_transfer.rs:105:36
    |
105 |                 Ok(with_xz_support(&path, BufReader::new(file)))
    |                                    ^^^^^ help: change this to: `path`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
    = note: `-D clippy::needless-borrow` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::needless_borrow)]`