refactor(provider): create provider database entries at compile time

According to cargo-llvm-lines it reduces the number of lines
in the crate by 0.7%.
This commit is contained in:
link2xt
2023-09-04 18:38:56 +00:00
parent 49f143e0d5
commit dbe9d7e34e
3 changed files with 617 additions and 645 deletions

View File

@@ -149,8 +149,8 @@ pub struct ProviderOptions {
pub delete_to_trash: bool,
}
impl Default for ProviderOptions {
fn default() -> Self {
impl ProviderOptions {
const fn new() -> Self {
Self {
strict_tls: true,
max_smtp_rcpt_to: None,