Skip to content

Commit

Permalink
Remove useless mut
Browse files Browse the repository at this point in the history
  • Loading branch information
breard-r committed Dec 9, 2023
1 parent fc0f3db commit ce3a300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oath/cbindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ pub extern "C" fn libreauth_hotp_generate(cfg: *const HOTPcfg, code: *mut u8) ->
/// ```
#[no_mangle]
pub extern "C" fn libreauth_hotp_is_valid(cfg: *mut HOTPcfg, code: *const u8, sync: i32) -> i32 {
let mut cfg = get_value_or_false!(get_mut_cfg(cfg));
let cfg = get_value_or_false!(get_mut_cfg(cfg));
let code = get_value_or_false!(get_code(code, cfg.output_len));
let output_base = get_value_or_false!(get_output_base(cfg.output_base));
let key = get_value_or_false!(get_key(cfg.key, cfg.key_len));
Expand Down

0 comments on commit ce3a300

Please sign in to comment.