ui/file: use FileID::into()

This commit is contained in:
Matthias Beyer 2015-12-02 13:41:51 +01:00
parent 292e29a5f1
commit 8ddfb090b4

View file

@ -104,7 +104,9 @@ impl FilePrinter for TablePrinter {
i += 1; i += 1;
let cell_i = Cell::new(&format!("{}", i)[..]); let cell_i = Cell::new(&format!("{}", i)[..]);
let cell_o = Cell::new(&format!("{}", file.owner().name())[..]); let cell_o = Cell::new(&format!("{}", file.owner().name())[..]);
let cell_id = Cell::new(&file.id()[..]);
let id : String = file.id().into();
let cell_id = Cell::new(&id[..]);
let row = Row::new(vec![cell_i, cell_o, cell_id]); let row = Row::new(vec![cell_i, cell_o, cell_id]);
tab.add_row(row); tab.add_row(row);
} }