mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-09-13 15:32:01 +00:00
apply clippy optimizations
This commit is contained in:
parent
1a7424f623
commit
9046a18e8d
@ -255,9 +255,9 @@ fn handle(
|
|||||||
Ok((buffer, _ ,_)) => match std::str::from_utf8(&buffer) {
|
Ok((buffer, _ ,_)) => match std::str::from_utf8(&buffer) {
|
||||||
Ok(data) => {
|
Ok(data) => {
|
||||||
let widget = if matches!(*feature, Feature::Source) {
|
let widget = if matches!(*feature, Feature::Source) {
|
||||||
page.content.to_text_source(&data.to_string())
|
page.content.to_text_source(data)
|
||||||
} else {
|
} else {
|
||||||
page.content.to_text_gemini(&uri, &data.to_string())
|
page.content.to_text_gemini(&uri, data)
|
||||||
};
|
};
|
||||||
page.search.set(Some(widget.text_view));
|
page.search.set(Some(widget.text_view));
|
||||||
page.set_title(&match widget.meta.title {
|
page.set_title(&match widget.meta.title {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user