From 0c26de9c88435dd6384c4bad83ca7cd2e60c9792 Mon Sep 17 00:00:00 2001 From: Joel Natividad <1980690+jqnatividad@users.noreply.github.com> Date: Sat, 15 Jun 2024 11:25:00 -0400 Subject: [PATCH] `jsonp`: convert manual unwrap_or_default --- src/cmd/jsonp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/jsonp.rs b/src/cmd/jsonp.rs index 6d341619e..0b12b3150 100644 --- a/src/cmd/jsonp.rs +++ b/src/cmd/jsonp.rs @@ -88,7 +88,7 @@ pub fn run(argv: &[&str]) -> CliResult<()> { .with_date_format(args.flag_date_format.clone()) .with_time_format(args.flag_time_format.clone()) .with_float_precision(args.flag_float_precision) - .with_null_value(args.flag_wnull_value.clone().unwrap_or("".to_string())) + .with_null_value(args.flag_wnull_value.clone().unwrap_or_default()) .include_bom(util::get_envvar_flag("QSV_OUTPUT_BOM")) .finish(&mut df)?; Ok(())