mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-05-04 05:15:09 -04:00
@@ -454,18 +454,6 @@ pub struct IndexerRule {
|
||||
}
|
||||
|
||||
impl IndexerRule {
|
||||
#[cfg(test)]
|
||||
pub fn new(name: String, default: bool, rules: Vec<RulePerKind>) -> Self {
|
||||
Self {
|
||||
id: None,
|
||||
name,
|
||||
default,
|
||||
rules,
|
||||
date_created: Utc::now(),
|
||||
date_modified: Utc::now(),
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn apply(
|
||||
&self,
|
||||
source: impl AsRef<Path>,
|
||||
|
||||
Reference in New Issue
Block a user