mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 16:32:29 +00:00
run clippy fix
This commit is contained in:
@@ -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(_)
|
||||
|
||||
@@ -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,
|
||||
);
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user