Skip to content

clippy: wasm32-wasip1 target fails #11619

@xtqqczze

Description

@xtqqczze
  error: unused variable: `from`
     --> src/uu/mv/src/mv.rs:932:28
      |
  932 | fn rename_symlink_fallback(from: &Path, to: &Path) -> io::Result<()> {
      |                            ^^^^ help: if this is intentional, prefix it with an underscore: `_from`
      |
      = note: `-D unused-variables` implied by `-D warnings`
      = help: to override `-D warnings` add `#[allow(unused_variables)]`
  
  error: unused variable: `to`
     --> src/uu/mv/src/mv.rs:932:41
      |
  932 | fn rename_symlink_fallback(from: &Path, to: &Path) -> io::Result<()> {
      |                                         ^^ help: if this is intentional, prefix it with an underscore: `_to`
  
  error: this can be `std::io::Error::other(_)`
     --> src/uu/mv/src/mv.rs:933:9
      |
  933 |       Err(io::Error::new(
      |  _________^
  934 | |         io::ErrorKind::Other,
  935 | |         translate!("mv-error-no-symlink-support"),
  936 | |     ))
      | |_____^
      |
      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.94.0/index.html#io_other_error
      = note: `-D clippy::io-other-error` implied by `-D warnings`
      = help: to override `-D warnings` add `#[allow(clippy::io_other_error)]`
  help: use `std::io::Error::other`
      |
  933 ~     Err(io::Error::other(
  934 ~         translate!("mv-error-no-symlink-support"),
      |
  
  error: could not compile `uu_mv` (lib) due to 3 previous errors
  warning: build failed, waiting for other jobs to finish...

https://github.com/uutils/coreutils/actions/runs/23947720806/job/69847554314?pr=11618

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions