Skip to content
This repository has been 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

Open
mthsmb opened this issue Nov 10, 2020 · 0 comments
Open

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

mthsmb opened this issue Nov 10, 2020 · 0 comments

Comments

@mthsmb
Copy link

mthsmb commented Nov 10, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant