apply new style
This commit is contained in:
1 parent
b1902b35cb
commit
1847d4f44f
15 files changed
+147
-92
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user