mirror of
https://github.com/Llewellynvdm/exa.git
synced 2025-01-25 22:58:26 +00:00
Why be so specific?
Different types of user caches could come in the future...
This commit is contained in:
parent
66339e7a15
commit
57430dbbe5
@ -6,7 +6,7 @@ use ansi_term::{ANSIString, Colour, Style};
|
|||||||
use ansi_term::Style::Plain;
|
use ansi_term::Style::Plain;
|
||||||
use ansi_term::Colour::{Red, Green, Yellow, Blue, Purple, Cyan, Fixed};
|
use ansi_term::Colour::{Red, Green, Yellow, Blue, Purple, Cyan, Fixed};
|
||||||
|
|
||||||
use users::{Users, OSUsers};
|
use users::Users;
|
||||||
|
|
||||||
use column::Column;
|
use column::Column;
|
||||||
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 {
|
match *column {
|
||||||
Permissions => {
|
Permissions => {
|
||||||
self.permissions_string()
|
self.permissions_string()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user