Skip to content

Commit 7f6fe62

Browse files
netheril96QZHelen
authored andcommitted
Workaround nanoserde bug
1 parent 3f26110 commit 7f6fe62

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

matcher-rs/src/openid4vci.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ pub struct RegularizedOpenId4VciRequestData<'a> {
4141
// Implement From on a Reference
4242
impl<'a> From<&'a OpenId4VciRequestData> for RegularizedOpenId4VciRequestData<'a> {
4343
fn from(value: &'a OpenId4VciRequestData) -> Self {
44-
let mut configurations =
45-
Vec::with_capacity(value.credential_configuration_ids.len());
44+
let mut configurations = Vec::with_capacity(value.credential_configuration_ids.len());
4645

4746
if let Some(metadata) = &value.credential_issuer_metadata {
4847
for id in &value.credential_configuration_ids {
@@ -67,7 +66,12 @@ pub mod credential_offer {
6766

6867
#[derive(DeJson, Debug, Default)]
6968
#[nserde(default)]
70-
pub struct Grant {}
69+
pub struct Grant {
70+
// Workaround for nanoserde bug:
71+
// https://github.com/not-fl3/nanoserde/issues/157
72+
#[allow(unused)]
73+
pub _dummy_not_in_use: i32,
74+
}
7175
}
7276

7377
mod credential_issuer_metadata {

0 commit comments

Comments
 (0)