Skip to content

Commit 9770e08

Browse files
committed
call by value is more efficient
1 parent 4c5ab70 commit 9770e08

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/input.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ mod tests {
295295
pub static ref MISSIONS: Missions = Missions::new(
296296
&ARGS.flag_encoding,
297297
&ARGS.flag_control_chars,
298-
&ARGS.flag_bytes
298+
ARGS.flag_bytes
299299
);
300300
}
301301

src/mission.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ lazy_static! {
2323
pub static ref MISSIONS: Missions = Missions::new(
2424
&ARGS.flag_encoding,
2525
&ARGS.flag_control_chars,
26-
&ARGS.flag_bytes
26+
ARGS.flag_bytes
2727
);
2828
}
2929

@@ -208,7 +208,7 @@ impl Missions {
208208
pub fn new(
209209
encodings: &Vec<String>,
210210
control_chars: &ControlChars,
211-
flag_bytes: &Option<u8>,
211+
flag_bytes: Option<u8>,
212212
) -> Self {
213213
let mut v = Vec::new();
214214

src/scanner.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ mod tests {
340340
pub static ref MISSIONS: Missions = Missions::new(
341341
&ARGS.flag_encoding,
342342
&ARGS.flag_control_chars,
343-
&ARGS.flag_bytes
343+
ARGS.flag_bytes
344344
);
345345
}
346346

@@ -355,7 +355,7 @@ mod tests {
355355
"UTF-16LE".to_string(),
356356
],
357357
&ARGS.flag_control_chars,
358-
&ARGS.flag_bytes
358+
ARGS.flag_bytes
359359
);
360360
}
361361

@@ -1052,7 +1052,7 @@ mod tests {
10521052
"koi8-u".to_string(),
10531053
],
10541054
&ARGS.flag_control_chars,
1055-
&ARGS.flag_bytes
1055+
ARGS.flag_bytes
10561056
);
10571057
}
10581058

0 commit comments

Comments
 (0)