Skip to content

Commit 2d2edc3

Browse files
author
Andrew
committed
feedback 1_3
1 parent 7bc6202 commit 2d2edc3

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

dsc/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ fn main() {
3434

3535
let args = Args::parse();
3636

37-
util::enable_tracing(args.trace_level, args.trace_format);
37+
util::enable_tracing(&args.trace_level, &args.trace_format);
3838

3939
debug!("Running dsc {}", env!("CARGO_PKG_VERSION"));
4040

dsc/src/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ pub fn write_output(json: &str, format: &Option<OutputFormat>) {
291291
}
292292
}
293293

294-
pub fn enable_tracing(trace_level_arg: Option<TraceLevel>, trace_format_arg: Option<TraceFormat>) {
294+
pub fn enable_tracing(trace_level_arg: &Option<TraceLevel>, trace_format_arg: &Option<TraceFormat>) {
295295

296296
let mut policy_is_used = false;
297297
let mut tracing_setting = TracingSetting::default();

dsc_lib/src/util.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ pub fn parse_input_to_json(value: &str) -> Result<String, DscError> {
5959
}
6060

6161
/// Will search setting files for the specified setting.
62+
/// Performance implication: Use this function economically as every call opens/reads several config files.
6263
///
6364
/// # Arguments
6465
///

0 commit comments

Comments
 (0)