fix header borrow bug

This commit is contained in:
Pakin 2025-08-04 10:56:39 +07:00
parent 6f138d4b98
commit 3d268e6d0a
2 changed files with 12 additions and 4 deletions

View file

@ -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
}