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

Build warnings, use of deprecated function #1

@ghost

Description

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?

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