Skip to content

Commit

Permalink
whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
kamiyaa committed Jul 20, 2024
1 parent fe8e891 commit d10ca32
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/types/state/tab_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ impl TabState {
pub fn tab_ref(&self, id: &Uuid) -> Option<&JoshutoTab> {
self.tabs.get(id)
}

pub fn tab_refs_in_order(&self) -> Vec<&JoshutoTab> {
let mut tab_refs: Vec<&JoshutoTab> = vec![];
for tab_id in self.tab_order.iter() {
Expand All @@ -35,7 +34,6 @@ impl TabState {
}
tab_refs
}

pub fn tab_mut(&mut self, id: &Uuid) -> Option<&mut JoshutoTab> {
self.tabs.get_mut(id)
}
Expand All @@ -51,6 +49,7 @@ impl TabState {
let id = &self.tab_order[self.index];
self.tabs.get_mut(id).unwrap()
}

pub fn insert_tab(&mut self, id: Uuid, tab: JoshutoTab, last: bool) {
self.tabs.insert(id, tab);
if last {
Expand Down

0 comments on commit d10ca32

Please sign in to comment.