Skip to content

Commit 07d30ca

Browse files
committed
refactor: remove unnecessary #[allow(dead_code)] attributes from Config fields
The project_root, build_dir, and original_inventory fields in the Config struct are actually being used throughout the codebase, so the dead_code allow attributes were not needed.
1 parent ce19127 commit 07d30ca

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/config.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,23 +50,20 @@ pub struct Config {
5050
///
5151
/// Used for resolving relative paths and locating project resources
5252
/// such as SSH key fixtures and project-specific configuration files.
53-
#[allow(dead_code)] // Still used for SSH key fixtures and cleanup
5453
pub project_root: PathBuf,
5554

5655
/// Directory where rendered configuration files will be written.
5756
///
5857
/// All processed templates and generated configuration files are written
5958
/// to subdirectories within this build directory. This directory is
6059
/// typically git-ignored to avoid committing generated files.
61-
#[allow(dead_code)] // Will be used in template rendering
6260
pub build_dir: PathBuf,
6361

6462
/// Original inventory content for restoration during cleanup.
6563
///
6664
/// Stores the original Ansible inventory file content so it can be
6765
/// restored if the deployment process modifies it. Used internally
6866
/// for cleanup operations.
69-
#[allow(dead_code)] // Used for cleanup but not directly accessed
7067
pub original_inventory: Option<String>,
7168
}
7269

0 commit comments

Comments
 (0)