Skip to content

web search done right

fixed clippy lints in kuchiki

Mikkel Denker96c8d0abf25b
diff --git a/Cargo.lock b/Cargo.lock
index 36c2c5ea..c279fdc7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2193,6 +2193,7 @@ dependencies = [
"matches",
"selectors",
"tempfile",
+ "thiserror",
]
[[package]]
diff --git a/core/src/webpage/mod.rs b/core/src/webpage/mod.rs
index 11387f9d..22aa3601 100644
--- a/core/src/webpage/mod.rs
+++ b/core/src/webpage/mod.rs
@@ -558,7 +558,7 @@ impl Html {
}
pub fn title(&self) -> Option<String> {
- if let Ok(title) = self.root.select_first("title") {
+ if let Some(title) = self.root.select_first("title") {
let title = title.text_contents().trim().to_string();
if title.is_empty() {
None