Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Add config command #777

Add config command

Add config command #777

GitHub Actions / clippy failed Feb 5, 2024 in 0s

clippy

4 errors

Details

Results

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

Versions

  • rustc 1.75.0-nightly (42b1224e9 2023-10-15)
  • cargo 1.75.0-nightly (6fa6fdc76 2023-10-10)
  • clippy 0.1.75 (42b1224 2023-10-15)

Annotations

Check failure on line 224 in pulsar/src/tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

useless conversion to the same type: `std::path::PathBuf`

error: useless conversion to the same type: `std::path::PathBuf`
   --> pulsar/src/tests.rs:224:37
    |
224 |         assert!(create_or_move_data(PathBuf::from(old_dir), PathBuf::from(new_dir)).is_err());
    |                                     ^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `PathBuf::from()`: `old_dir`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion

Check failure on line 210 in pulsar/src/tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

useless conversion to the same type: `std::path::PathBuf`

error: useless conversion to the same type: `std::path::PathBuf`
   --> pulsar/src/tests.rs:210:61
    |
210 |         assert!(create_or_move_data(PathBuf::from(old_dir), PathBuf::from(new_dir)).is_err());
    |                                                             ^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `PathBuf::from()`: `new_dir`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion

Check failure on line 210 in pulsar/src/tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

useless conversion to the same type: `std::path::PathBuf`

error: useless conversion to the same type: `std::path::PathBuf`
   --> pulsar/src/tests.rs:210:37
    |
210 |         assert!(create_or_move_data(PathBuf::from(old_dir), PathBuf::from(new_dir)).is_err());
    |                                     ^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `PathBuf::from()`: `old_dir`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
    = note: `-D clippy::useless-conversion` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::useless_conversion)]`

Check failure on line 192 in pulsar/src/tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

useless use of `format!`

error: useless use of `format!`
   --> pulsar/src/tests.rs:192:47
    |
192 |         let temp_dir = Path::new("/tmp").join(format!("test_pulsar"));
    |                                               ^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"test_pulsar".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)]`