diff --git a/src/app/browser/window/tab/item/page/meta.rs b/src/app/browser/window/tab/item/page/meta.rs index fc0f179d..ad214289 100644 --- a/src/app/browser/window/tab/item/page/meta.rs +++ b/src/app/browser/window/tab/item/page/meta.rs @@ -95,7 +95,7 @@ impl Meta { } pub fn redirect_count(&self) -> Option { - self.redirect_count.borrow().clone() + *self.redirect_count.borrow() } /// WARNING! diff --git a/src/app/browser/window/tab/item/page/navigation/history.rs b/src/app/browser/window/tab/item/page/navigation/history.rs index 58997b86..692bb1cc 100644 --- a/src/app/browser/window/tab/item/page/navigation/history.rs +++ b/src/app/browser/window/tab/item/page/navigation/history.rs @@ -73,7 +73,7 @@ impl History { } pub fn back(&self, follow_to_index: bool) -> Option { - let index = self.index.borrow().clone(); // keep outside as borrow + let index = *self.index.borrow(); if let Some(usize) = index { // Make sure value positive to prevent panic if usize > 0 { @@ -89,7 +89,7 @@ impl History { } pub fn current(&self) -> Option { - let index = self.index.borrow().clone(); // keep outside as borrow + let index = *self.index.borrow(); if let Some(usize) = index { if let Some(memory) = self.memory.borrow().get(usize) { return Some(memory.request.clone()); @@ -99,7 +99,7 @@ impl History { } pub fn forward(&self, follow_to_index: bool) -> Option { - let index = self.index.borrow().clone(); // keep outside as borrow + let index = *self.index.borrow(); if let Some(usize) = index { if let Some(memory) = self.memory.borrow().get(usize + 1) { if follow_to_index {