From 16b469c16f8ef5fffa210b0f199bf8a43dcacc43 Mon Sep 17 00:00:00 2001 From: elipeter Date: Tue, 24 Jun 2025 17:56:26 +0200 Subject: [PATCH] Renamed file.rs to ast.rs to more accurately represent what that code does --- src/{file.rs => ast.rs} | 0 src/commands/scan.rs | 2 +- src/main.rs | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename src/{file.rs => ast.rs} (100%) diff --git a/src/file.rs b/src/ast.rs similarity index 100% rename from src/file.rs rename to src/ast.rs diff --git a/src/commands/scan.rs b/src/commands/scan.rs index cc6aa171..bd1c8da4 100644 --- a/src/commands/scan.rs +++ b/src/commands/scan.rs @@ -12,7 +12,7 @@ use rayon::prelude::*; use std::collections::BTreeMap; use dashmap::DashMap; use crate::errors::NyxResult; -pub(crate) use crate::file::run_rules_on_file; +pub(crate) use crate::ast::run_rules_on_file; type DynError = Box; diff --git a/src/main.rs b/src/main.rs index f8c72605..1177a775 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,7 +5,7 @@ mod walk; mod database; mod patterns; mod errors; -mod file; +mod ast; use crate::utils::Config; use cli::Cli;