apply clippy optimizations

This commit is contained in:
yggverse 2025-01-21 15:06:49 +02:00
parent 0c08a0fb2f
commit 32d3c1b31a
3 changed files with 5 additions and 5 deletions

View file

@ -218,7 +218,7 @@ impl Tab {
// Save page at given `position`, `None` to save selected page (if available)
pub fn save_as(&self, page_position: Option<i32>) {
if let Some(item) = self.item(page_position) {
item.page.navigation.request.into_download();
item.page.navigation.request.to_download();
todo!()
}
}
@ -226,7 +226,7 @@ impl Tab {
// View source for page at given `position`, `None` to use selected page (if available)
pub fn source(&self, page_position: Option<i32>) {
if let Some(item) = self.item(page_position) {
item.page.navigation.request.into_source();
item.page.navigation.request.to_source();
todo!()
}
}