Skip to content

Commit 0910550

Browse files
committed
handling clippy warnings
1 parent 59eb86b commit 0910550

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/commands/search/framework/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/// From: https://github.com/ratatui-org/rust-tui-template
2-
2+
///
33
/// Terminal UI events handler
44
pub mod event;
55

src/template/item/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ impl Template {
223223
}
224224
_ => {
225225
let url = self.value.url()?;
226-
return match TemplateCache::get(&url)? {
226+
match TemplateCache::get(&url)? {
227227
Some(content) => Ok(content),
228228
None => {
229229
let content: String = http().get(&url)
@@ -239,7 +239,7 @@ impl Template {
239239
TemplateCache::set(&url, content)?;
240240
Ok(content.to_string())
241241
}
242-
};
242+
}
243243
}
244244
}
245245
}

0 commit comments

Comments
 (0)