remove duplicate new function (#955)

stupid
This commit is contained in:
Brendan Allan
2023-06-16 03:49:11 +02:00
committed by GitHub
parent 9a25373a94
commit 01565b0130

View File

@@ -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>,