Skip to content
This repository was archived by the owner on Oct 20, 2023. It is now read-only.
This repository was archived by the owner on Oct 20, 2023. It is now read-only.

Warning when building the package. [cb-git 0.1.0.r3.gb68417d-1] #5

@mthsmb

Description

@mthsmb

Warning when building the package.

   Compiling common v0.1.0 (/home/mthsmb/.cache/yay/cb-git/src/cb/common)
warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string()
  --> common/src/errors/string_error_result.rs:11:28
   |
11 |         self.map_err(|e| e.description().to_string())
   |                            ^^^^^^^^^^^
   |
   = note: `#[warn(deprecated)]` on by default

   Compiling server v0.1.0 (/home/mthsmb/.cache/yay/cb-git/src/cb/server)
warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string()
 --> server/src/clipboard_handler.rs:9:48
  |
9 |         ClipboardProvider::new().map_err(|e| e.description().to_string())?;
  |                                                ^^^^^^^^^^^
  |
  = note: `#[warn(deprecated)]` on by default

warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string()
  --> server/src/clipboard_handler.rs:13:32
   |
13 |                 .map_err(|e| e.description().to_string())?;
   |                                ^^^^^^^^^^^

warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string()
  --> server/src/clipboard_handler.rs:18:32
   |
18 |                 .map_err(|e| e.description().to_string())?,
   |                                ^^^^^^^^^^^

warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string()
  --> server/src/clipboard_handler.rs:22:32
   |
22 |                 .map_err(|e| e.description().to_string())?;
   |                                ^^^^^^^^^^^

warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string()
  --> server/src/transmitter/async_unix/codec.rs:40:40
   |
40 |                 Err(e) => return Err(e.description().to_string()),
   |                                        ^^^^^^^^^^^

warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string()
  --> server/src/transmitter/async_unix/codec.rs:62:40
   |
62 |                 Err(e) => return Err(e.description().to_string()),
   |                                        ^^^^^^^^^^^

   Compiling cli v0.1.0 (/home/mthsmb/.cache/yay/cb-git/src/cb/cli)
warning: 1 warning emitted

warning: 6 warnings emitted

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions