Skip to content

web search done right

fix cargo warnings

Mikkel Denker47220248099a
diff --git a/core/src/distributed/sonic/service.rs b/core/src/distributed/sonic/service.rs
index b05c09f7..7fe6b646 100644
--- a/core/src/distributed/sonic/service.rs
+++ b/core/src/distributed/sonic/service.rs
@@ -33,7 +33,7 @@ pub trait Service: Sized + Send + Sync + 'static {
pub trait Message<S: Service> {
type Response;
- async fn handle(self, server: &S) -> Result<Self::Response>;
+ fn handle(self, server: &S) -> impl std::future::Future<Output = Result<Self::Response>>;
}
pub trait Wrapper<S: Service>: Message<S> {
fn wrap_request_ref(req: &Self) -> S::RequestRef<'_>;
diff --git a/kuchiki/src/select.rs b/kuchiki/src/select.rs
index 574e1286..7c0b8c92 100644
--- a/kuchiki/src/select.rs
+++ b/kuchiki/src/select.rs
@@ -142,7 +142,7 @@ impl ToCss for PseudoElement {
where
W: fmt::Write,
{
- match *self {}
+ Ok(())
}
}
@@ -299,10 +299,10 @@ impl selectors::Element for NodeDataRef<ElementData> {
fn match_pseudo_element(
&self,
- pseudo: &PseudoElement,
+ _pseudo: &PseudoElement,
_context: &mut matching::MatchingContext<KuchikiSelectors>,
) -> bool {
- match *pseudo {}
+ true
}
fn match_non_ts_pseudo_class<F>(