Fix new clippy lints.
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>pull/11/head
parent
0007bb30c5
commit
05333385a8
|
@ -23,7 +23,7 @@ use std::{
|
|||
io::Write,
|
||||
};
|
||||
|
||||
use clap::ArgAction;
|
||||
use clap::{ArgAction, CommandFactory};
|
||||
use clap_mangen::{roff, Man};
|
||||
use roff::{bold, italic, roman, Inline, Roff};
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
pub use std::path::PathBuf;
|
||||
|
||||
pub use clap::{builder::TypedValueParser, Args, CommandFactory, Parser, Subcommand};
|
||||
pub use clap::{builder::TypedValueParser, Args, Parser, Subcommand};
|
||||
|
||||
#[derive(Debug, Parser)]
|
||||
#[command(
|
||||
|
|
|
@ -42,7 +42,6 @@ mod settings;
|
|||
use log::trace;
|
||||
use melib::{Address, HeaderName};
|
||||
use percent_encoding::utf8_percent_encode;
|
||||
pub use settings::*;
|
||||
|
||||
use crate::{
|
||||
mail::{ListContext, MailJob, PostAction, PostEntry},
|
||||
|
|
|
@ -320,7 +320,7 @@ impl MailingList {
|
|||
Address::new(Some(self.name.clone()), self.address.clone())
|
||||
}
|
||||
|
||||
/// List unsubscribe action as a [`MailtoAddress`](super::MailtoAddress).
|
||||
/// List unsubscribe action as a [`MailtoAddress`].
|
||||
pub fn unsubscription_mailto(&self) -> MailtoAddress {
|
||||
MailtoAddress {
|
||||
address: self.request_subaddr(),
|
||||
|
@ -328,7 +328,7 @@ impl MailingList {
|
|||
}
|
||||
}
|
||||
|
||||
/// List subscribe action as a [`MailtoAddress`](super::MailtoAddress).
|
||||
/// List subscribe action as a [`MailtoAddress`].
|
||||
pub fn subscription_mailto(&self) -> MailtoAddress {
|
||||
MailtoAddress {
|
||||
address: self.request_subaddr(),
|
||||
|
@ -336,7 +336,7 @@ impl MailingList {
|
|||
}
|
||||
}
|
||||
|
||||
/// List owner as a [`MailtoAddress`](super::MailtoAddress).
|
||||
/// List owner as a [`MailtoAddress`].
|
||||
pub fn owner_mailto(&self) -> MailtoAddress {
|
||||
let p = self.address.split('@').collect::<Vec<&str>>();
|
||||
MailtoAddress {
|
||||
|
|
|
@ -19,9 +19,6 @@
|
|||
|
||||
//! How each list handles new posts and new subscriptions.
|
||||
|
||||
pub use post_policy::*;
|
||||
pub use subscription_policy::*;
|
||||
|
||||
mod post_policy {
|
||||
use log::trace;
|
||||
use rusqlite::OptionalExtension;
|
||||
|
|
|
@ -67,7 +67,7 @@ pub struct PostfixConfiguration {
|
|||
#[serde(default)]
|
||||
pub process_limit: Option<u64>,
|
||||
/// The directory in which the map files are saved.
|
||||
/// Default is `data_path` from [`Configuration`](crate::Configuration).
|
||||
/// Default is `data_path` from [`Configuration`].
|
||||
#[serde(default)]
|
||||
pub map_output_path: Option<PathBuf>,
|
||||
/// The name of the Postfix service name to use.
|
||||
|
|
|
@ -276,7 +276,7 @@ pub async fn user_list_subscription(
|
|||
.list_subscription(
|
||||
list.pk(),
|
||||
subscriptions
|
||||
.get(0)
|
||||
.first()
|
||||
.ok_or_else(|| {
|
||||
ResponseError::new(
|
||||
"Subscription not found".to_string(),
|
||||
|
|
Loading…
Reference in New Issue