mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-09-05 03:12:07 +00:00
apply clippy optimizations
This commit is contained in:
parent
0c08a0fb2f
commit
32d3c1b31a
@ -218,7 +218,7 @@ impl Tab {
|
|||||||
// Save page at given `position`, `None` to save selected page (if available)
|
// Save page at given `position`, `None` to save selected page (if available)
|
||||||
pub fn save_as(&self, page_position: Option<i32>) {
|
pub fn save_as(&self, page_position: Option<i32>) {
|
||||||
if let Some(item) = self.item(page_position) {
|
if let Some(item) = self.item(page_position) {
|
||||||
item.page.navigation.request.into_download();
|
item.page.navigation.request.to_download();
|
||||||
todo!()
|
todo!()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -226,7 +226,7 @@ impl Tab {
|
|||||||
// View source for page at given `position`, `None` to use selected page (if available)
|
// View source for page at given `position`, `None` to use selected page (if available)
|
||||||
pub fn source(&self, page_position: Option<i32>) {
|
pub fn source(&self, page_position: Option<i32>) {
|
||||||
if let Some(item) = self.item(page_position) {
|
if let Some(item) = self.item(page_position) {
|
||||||
item.page.navigation.request.into_source();
|
item.page.navigation.request.to_source();
|
||||||
todo!()
|
todo!()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -338,7 +338,7 @@ impl Gemini {
|
|||||||
mime => {
|
mime => {
|
||||||
let status = page
|
let status = page
|
||||||
.content
|
.content
|
||||||
.to_status_mime(&mime, Some((&page.tab_action, &uri)));
|
.to_status_mime(mime, Some((&page.tab_action, &uri)));
|
||||||
status.set_description(Some(&format!("Content type `{mime}` yet not supported")));
|
status.set_description(Some(&format!("Content type `{mime}` yet not supported")));
|
||||||
|
|
||||||
page.status.replace(PageStatus::Failure { time: now() });
|
page.status.replace(PageStatus::Failure { time: now() });
|
||||||
|
@ -94,11 +94,11 @@ impl Request {
|
|||||||
|
|
||||||
// Setters
|
// Setters
|
||||||
|
|
||||||
pub fn into_download(&self) {
|
pub fn to_download(&self) {
|
||||||
self.widget.entry.set_text(&self.download());
|
self.widget.entry.set_text(&self.download());
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn into_source(&self) {
|
pub fn to_source(&self) {
|
||||||
self.widget.entry.set_text(&self.source());
|
self.widget.entry.set_text(&self.source());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user