Why be so specific?

Different types of user caches could come in the future...
This commit is contained in:
Ben S 2014-12-12 14:13:08 +00:00
parent 66339e7a15
commit 57430dbbe5

View File

@ -6,7 +6,7 @@ use ansi_term::{ANSIString, Colour, Style};
use ansi_term::Style::Plain;
use ansi_term::Colour::{Red, Green, Yellow, Blue, Purple, Cyan, Fixed};
use users::{Users, OSUsers};
use users::Users;
use column::Column;
use column::Column::*;
@ -103,7 +103,7 @@ impl<'a> File<'a> {
}
}
pub fn display(&self, column: &Column, users_cache: &mut OSUsers) -> String {
pub fn display<U: Users>(&self, column: &Column, users_cache: &mut U) -> String {
match *column {
Permissions => {
self.permissions_string()