apply new style

This commit is contained in:
micialware committed 2026-09-15 22:09:06 +03:00
1 parent b1902b35cb
commit 1847d4f44f
15 files changed
+147 -92

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
use crate::core::srs::{WordOpenMode, FADE_PER_DAY, MAX_SCORE};
use crate::data::{Id, INVALID_ID};
use crate::core::srs::{FADE_PER_DAY, MAX_SCORE, WordOpenMode};
use crate::data::{INVALID_ID, Id};
use crate::data_provider::history::HistoryRepositoryInner;
use chrono::{DateTime, Local, NaiveDate, Utc};
use fsrs::MemoryState;
+1 -1
View File
@@ -215,7 +215,7 @@ impl<T: EntityData + Clone + Send + Sync, R: Repository<T, D>, D: DbLayer<T>> Qu
pub fn len(&self) -> usize {
self.cache.len()
}
pub fn get(&self, index: usize) -> Option<EntityHandle<T>> {
self.cache.get(index).cloned()
}