chore: remove unused code & update log (#5194)

* chore: remove unused code & update log

* chore: clippy

* chore: log
This commit is contained in:
Nathan.fooo
2024-04-24 08:47:33 +08:00
committed by GitHub
parent 275d0b2ac4
commit 9aaada961f
16 changed files with 52 additions and 91 deletions

View File

@ -408,14 +408,14 @@ impl IndexManager for FolderIndexManagerImpl {
}
impl FolderIndexManager for FolderIndexManagerImpl {
fn index_all_views(&self, views: Vec<View>, workspace_id: String) {
fn index_all_views(&self, views: Vec<Arc<View>>, workspace_id: String) {
let indexable_data = views
.into_iter()
.map(|view| IndexableData {
id: view.id,
data: view.name,
icon: view.icon,
layout: view.layout,
id: view.id.clone(),
data: view.name.clone(),
icon: view.icon.clone(),
layout: view.layout.clone(),
workspace_id: workspace_id.clone(),
})
.collect();