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

Build warnings, use of deprecated function #1

Open
ghost opened this issue Jul 17, 2018 · 1 comment
Open

Build warnings, use of deprecated function #1

ghost opened this issue Jul 17, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 17, 2018

I'm currently using the latest nightly, and I'm getting these warnings on build:

warning: unused import: `self::users::get_user_by_name`========> ] 208/211  
  --> sigchain_client/src/krd_client/mod.rs:18:5
   |
18 | use self::users::get_user_by_name;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: #[warn(unused_imports)] on by default

warning: unused import: `self::users::os::unix::UserExt`
  --> sigchain_client/src/krd_client/mod.rs:19:5
   |
19 | use self::users::os::unix::UserExt;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: use of deprecated item 'std::env::home_dir': This function's behavior is unexpected and probably not what you want. Consider using the home_dir function from https://crates.io/crates/dirs instead.
  --> sigchain_client/src/krd_client/mod.rs:31:21
   |
31 |     let home_path = env::home_dir();
   |                     ^^^^^^^^^^^^^
   |
   = note: #[warn(deprecated)] on by default

I'd like to have a look at fixing these if that's ok?

@kcking
Copy link

kcking commented Jul 17, 2018

Sure, thanks for reporting them!

@ghost ghost changed the title Build warnings, use of depracated function Build warnings, use of deprecated function Jul 18, 2018
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