run clippy fix

This commit is contained in:
Lennart K
2025-10-27 19:01:04 +01:00
parent 08041c60be
commit 0d071d3b92
94 changed files with 455 additions and 484 deletions

View File

@@ -125,7 +125,7 @@ impl<S: SubscriptionStore> DavPushController<S> {
subsciption.id, subsciption.topic
);
self.try_delete_subscription(&subsciption.id).await;
};
}
}
if let Err(err) = self.send_payload(&payload, &subsciption).await {
@@ -207,7 +207,7 @@ enum NotifierError {
impl NotifierError {
// Decide whether the error should cause the subscription to be removed
pub fn is_permament_error(&self) -> bool {
pub const fn is_permament_error(&self) -> bool {
match self {
Self::InvalidPublicKeyType(_)
| Self::InvalidEndpointUrl(_)

View File

@@ -1,7 +1,7 @@
use rustical_dav::header::Depth;
use rustical_xml::{Unparsed, XmlDeserialize, XmlSerialize};
#[derive(Debug, Clone, XmlSerialize, PartialEq)]
#[derive(Debug, Clone, XmlSerialize, PartialEq, Eq)]
pub enum Transport {
#[xml(ns = "rustical_dav::namespace::NS_DAVPUSH")]
WebPush,
@@ -33,12 +33,12 @@ pub enum Trigger {
PropertyUpdate(PropertyUpdate),
}
#[derive(XmlSerialize, XmlDeserialize, PartialEq, Clone, Debug)]
#[derive(XmlSerialize, XmlDeserialize, PartialEq, Eq, Clone, Debug)]
pub struct ContentUpdate(
#[xml(rename = "depth", ns = "rustical_dav::namespace::NS_DAV")] pub Depth,
);
#[derive(XmlSerialize, PartialEq, Clone, Debug)]
#[derive(XmlSerialize, PartialEq, Eq, Clone, Debug)]
pub struct PropertyUpdate(
#[xml(rename = "depth", ns = "rustical_dav::namespace::NS_DAV")] pub Depth,
);

View File

@@ -15,7 +15,7 @@ pub struct WebPushSubscription {
pub auth_secret: String,
}
#[derive(XmlDeserialize, Clone, Debug, PartialEq)]
#[derive(XmlDeserialize, Clone, Debug, PartialEq, Eq)]
pub struct SubscriptionPublicKey {
#[xml(ty = "attr", rename = "type")]
pub ty: String,