mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-05 16:04:15 +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)
|
||||
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!()
|
||||
}
|
||||
}
|
||||
|
@ -338,7 +338,7 @@ impl Gemini {
|
||||
mime => {
|
||||
let status = page
|
||||
.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")));
|
||||
|
||||
page.status.replace(PageStatus::Failure { time: now() });
|
||||
|
@ -94,11 +94,11 @@ impl Request {
|
||||
|
||||
// Setters
|
||||
|
||||
pub fn into_download(&self) {
|
||||
pub fn to_download(&self) {
|
||||
self.widget.entry.set_text(&self.download());
|
||||
}
|
||||
|
||||
pub fn into_source(&self) {
|
||||
pub fn to_source(&self) {
|
||||
self.widget.entry.set_text(&self.source());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user