Skip to content

Commit

Permalink
Import and pub fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ogham committed Mar 10, 2018
1 parent c4a0d28 commit 5444415
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
11 changes: 7 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
#![crate_type = "rlib"]
#![crate_type = "dylib"]

#![warn(missing_copy_implementations)]
#![warn(missing_docs)]
#![warn(trivial_casts, trivial_numeric_casts)]
#![warn(unused_extern_crates, unused_qualifications)]
#![warn(unreachable_pub)]


//! This is a library for getting information on Unix users and groups. It
//! supports getting the system users, and creating your own mock tables.
//!
Expand Down Expand Up @@ -104,10 +111,6 @@
//! Use the mocking module to create custom tables to test your code for these
//! edge cases.

#![warn(missing_copy_implementations)]
#![warn(missing_docs)]
#![warn(trivial_casts, trivial_numeric_casts)]
#![warn(unused_extern_crates, unused_qualifications)]

extern crate libc;
pub use libc::{uid_t, gid_t};
Expand Down
7 changes: 4 additions & 3 deletions src/traits.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
use std::sync::Arc;

pub use libc::{uid_t, gid_t, c_int};
use libc::{uid_t, gid_t};

use base::{User, Group};

use super::{User, Group};

/// Trait for producers of users.
pub trait Users {
Expand Down Expand Up @@ -46,4 +47,4 @@ pub trait Groups {

/// Returns the effective group name.
fn get_effective_groupname(&self) -> Option<Arc<String>>;
}
}

0 comments on commit 5444415

Please sign in to comment.