mirror of
https://github.com/agersant/polaris
synced 2024-12-02 09:39:09 +00:00
Fixed compile errors
This commit is contained in:
parent
d348f15032
commit
851d31eef9
1 changed files with 2 additions and 0 deletions
|
@ -5,6 +5,7 @@ use diesel::prelude::*;
|
|||
use diesel::sql_types;
|
||||
use diesel::sqlite::SqliteConnection;
|
||||
use error_chain::bail;
|
||||
#[cfg(feature = "profile-index")]
|
||||
use flame;
|
||||
use log::{error, info};
|
||||
use regex::Regex;
|
||||
|
@ -278,6 +279,7 @@ impl<'conn> IndexBuilder<'conn> {
|
|||
|
||||
// Insert content
|
||||
for file in fs::read_dir(path)? {
|
||||
#[cfg(feature = "profile-index")]
|
||||
let _guard = flame::start_guard("directory-entry");
|
||||
let file_path = match file {
|
||||
Ok(ref f) => f.path(),
|
||||
|
|
Loading…
Reference in a new issue