fix header borrow bug
This commit is contained in:
parent
6f138d4b98
commit
3d268e6d0a
2 changed files with 12 additions and 4 deletions
|
|
@ -50,6 +50,10 @@ impl Table {
|
|||
.collect::<Vec<String>>();
|
||||
}
|
||||
|
||||
pub fn set_headers(&mut self, headers: Vec<String>) {
|
||||
self.header = headers;
|
||||
}
|
||||
|
||||
pub fn get_current_header(self) -> Vec<String> {
|
||||
self.header
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue