From de2d1fa2cd992d67c75c5644f454cdec88e1ce2b Mon Sep 17 00:00:00 2001 From: Ranjit Mahadik <43403528+ranjitmahadik@users.noreply.github.com> Date: Mon, 17 Jun 2024 16:25:38 +0530 Subject: [PATCH] - fixed lint error: file with same module name. --- src/cli/generator/{generator.rs => config_generator.rs} | 3 +-- src/cli/generator/mod.rs | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) rename src/cli/generator/{generator.rs => config_generator.rs} (99%) diff --git a/src/cli/generator/generator.rs b/src/cli/generator/config_generator.rs similarity index 99% rename from src/cli/generator/generator.rs rename to src/cli/generator/config_generator.rs index 7f491351ad..b234c51059 100644 --- a/src/cli/generator/generator.rs +++ b/src/cli/generator/config_generator.rs @@ -4,6 +4,7 @@ use std::path::Path; use inquire::Confirm; use pathdiff::diff_paths; +use super::config::{GeneratorConfig, InputSource, Resolved}; use crate::core::config::{self, ConfigModule}; use crate::core::generator::source::{ConfigSource, ImportSource}; use crate::core::generator::{ConfigInput, Generator, JsonInput, ProtoInput}; @@ -11,8 +12,6 @@ use crate::core::proto_reader::ProtoReader; use crate::core::resource_reader::ResourceReader; use crate::core::runtime::TargetRuntime; -use super::config::{GeneratorConfig, InputSource, Resolved}; - /// Checks if file or folder already exists or not. fn is_exists(path: &str) -> bool { fs::metadata(path).is_ok() diff --git a/src/cli/generator/mod.rs b/src/cli/generator/mod.rs index dd52b56057..8089eca883 100644 --- a/src/cli/generator/mod.rs +++ b/src/cli/generator/mod.rs @@ -1,4 +1,4 @@ -mod generator; mod config; +mod config_generator; -pub use generator::ConfigConsoleGenerator; \ No newline at end of file +pub use config_generator::ConfigConsoleGenerator;