Skip to content

Commit

Permalink
bin/cmd_parsers/operations: Set threshold param to be float
Browse files Browse the repository at this point in the history
Signed-off-by: caleb <[email protected]>
  • Loading branch information
etemesi254 committed Oct 14, 2023
1 parent 8e4b918 commit 34bb304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zune-bin/src/cmd_parsers/operations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ pub fn parse_options<T: IntoImage>(
let val: Vec<&String> = args.get_many::<String>(argument).unwrap().collect();

// parse first one as radius
let radius = str::parse::<u16>(val[0]).map_err(|x| x.to_string())?;
let radius = str::parse::<f32>(val[0]).map_err(|x| x.to_string())?;
let thresh_mode = ThresholdMethod::from_string_result(val[1])?;
let threshold = Threshold::new(radius, thresh_mode);

Expand Down

0 comments on commit 34bb304

Please sign in to comment.