You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: old_indexer_job.rs
    path of file: ./repos/spacedrive/core/src/location/indexer
    
    the code of the file until where you have to start completion: use crate::{
	file_paths_db_fetcher_fn, invalidate_query,
	library::Library,
	location::{location_with_indexer_rules, update_location_size},
	old_job::{
		CurrentStep, JobError, JobInitOutput, JobReportUpdate, JobResult, JobRunMetadata,
		JobStepOutput, StatefulJob, WorkerContext,
	},
	to_remove_db_fetcher_fn,
};

use sd_file_path_helper::{
	ensure_file_path_exists, ensure_sub_path_is_direct
    
	fn on_scan_progress(ctx: &WorkerContext, progress: Vec<ScanProgress>) {
		ctx.progress(
			progress
				.into_iter()
				.map(|p| match p {
					ScanProgress::ChunkCount(c) => JobReportUpdate::TaskCount(c),
					ScanProgress::SavedChunks(p) | ScanProgress::UpdatedChunks(p) => {
						JobReportUpdate::CompletedTaskCount(p)
					}
					ScanProgress::Message(m) => JobReportUpdate::Message(m),
				})
				.collect(),
		)
	}