core/datetime: Use "cfg(test)" annotation for tests

This commit is contained in:
Pekka Enberg
2024-08-02 15:54:32 +03:00
parent f8492c85ae
commit 763bf17c9e

View File

@@ -259,6 +259,7 @@ fn get_time_from_naive_datetime(value: NaiveDateTime) -> String {
value.format("%H:%M:%S").to_string()
}
#[cfg(test)]
mod tests {
use super::*;
use std::rc::Rc;