Skip to content

Commit 5924c09

Browse files
committed
refactor: Remove unused args field from ContextCommand struct
1 parent faf303b commit 5924c09

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

phper-test/src/context.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ impl Context {
8080
script.as_ref().display().to_string(),
8181
];
8282
cmd.args(&args);
83-
ContextCommand { cmd, args }
83+
ContextCommand { cmd }
8484
}
8585

8686
pub fn find_php_fpm(&self) -> Option<String> {
@@ -122,7 +122,6 @@ impl Context {
122122

123123
pub struct ContextCommand {
124124
cmd: Command,
125-
args: Vec<String>,
126125
}
127126

128127
impl ContextCommand {
@@ -133,10 +132,6 @@ impl ContextCommand {
133132
command.extend(args);
134133
command
135134
}
136-
137-
pub fn get_args(&self) -> &[String] {
138-
&self.args
139-
}
140135
}
141136

142137
impl Deref for ContextCommand {

0 commit comments

Comments
 (0)