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-05 00:03:34 +00:00
parent 49f143e0d5
commit dbe9d7e34e
3 changed files with 617 additions and 645 deletions
+2 -2
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,
+609 -637
View File
File diff suppressed because it is too large Load Diff