Database schema optimization - part 13

This commit is contained in:
mdecimus
2025-11-22 10:55:54 +02:00
parent dbe40829da
commit c7fc16d9a2
60 changed files with 2118 additions and 1249 deletions

View File

@@ -725,14 +725,16 @@ impl Default for EmailComparator {
impl EmailComparator {
fn take_keyword(&mut self) -> Keyword {
match self {
EmailComparator::HasKeyword(k) => std::mem::replace(k, Keyword::Other(String::new())),
EmailComparator::HasKeyword(k) => {
std::mem::replace(k, Keyword::Other(Default::default()))
}
EmailComparator::AllInThreadHaveKeyword(k) => {
std::mem::replace(k, Keyword::Other(String::new()))
std::mem::replace(k, Keyword::Other(Default::default()))
}
EmailComparator::SomeInThreadHaveKeyword(k) => {
std::mem::replace(k, Keyword::Other(String::new()))
std::mem::replace(k, Keyword::Other(Default::default()))
}
_ => Keyword::Other(String::new()),
_ => Keyword::Other(Default::default()),
}
}
}