mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
apply clippy optimizations
This commit is contained in:
parent
1a7424f623
commit
9046a18e8d
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue