fix cargo clippy lint
This commit is contained in:
parent
4f482f3b63
commit
24ef96b965
1 changed files with 1 additions and 3 deletions
|
|
@ -342,9 +342,7 @@ impl Screen {
|
||||||
/// Consumes the last entry in tab history.
|
/// Consumes the last entry in tab history.
|
||||||
pub fn get_previous_tab(&mut self) -> Option<&Tab> {
|
pub fn get_previous_tab(&mut self) -> Option<&Tab> {
|
||||||
let last = self.tab_history.pop();
|
let last = self.tab_history.pop();
|
||||||
if last.is_none() {
|
last?;
|
||||||
return None;
|
|
||||||
}
|
|
||||||
match last.unwrap() {
|
match last.unwrap() {
|
||||||
Some(tab) => self.tabs.get(&tab),
|
Some(tab) => self.tabs.get(&tab),
|
||||||
None => None,
|
None => None,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue