mirror of
https://github.com/bitwarden/browser
synced 2026-02-21 20:04:02 +00:00
Allow trailing commas in webauthn fn definition macro
This commit is contained in:
@@ -9,7 +9,7 @@ use windows::{
|
||||
use crate::{ErrorKind, WinWebAuthnError};
|
||||
|
||||
macro_rules! webauthn_call {
|
||||
($symbol:literal as $(#[$attr:meta])* fn $fn_name:ident($($arg:ident: $arg_type:ty),+) -> $result_type:ty) => (
|
||||
($symbol:literal as $(#[$attr:meta])* fn $fn_name:ident($($arg:ident: $arg_type:ty),+ $(,)?) -> $result_type:ty) => (
|
||||
$(#[$attr])*
|
||||
pub(super) unsafe fn $fn_name($($arg: $arg_type),*) -> Result<$result_type, crate::WinWebAuthnError> {
|
||||
let library = crate::util::load_webauthn_lib()?;
|
||||
|
||||
Reference in New Issue
Block a user