merge main into next

This commit is contained in:
adlerhurst
2023-10-19 12:34:00 +02:00
parent b5564572bc
commit bd23a7a56f
107 changed files with 1321 additions and 554 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ func (c *HasherConfig) buildHasher() (hasher passwap.Hasher, prefixes []string,
func (c *HasherConfig) decodeParams(dst any) error {
decoder, err := mapstructure.NewDecoder(&mapstructure.DecoderConfig{
ErrorUnused: true,
ErrorUnused: false,
ErrorUnset: true,
Result: dst,
})
+4 -1
View File
@@ -379,7 +379,10 @@ func TestHasherConfig_decodeParams(t *testing.T) {
"b": 2,
"c": 3,
},
wantErr: true,
want: dst{
A: 1,
B: 2,
},
},
{
name: "unset",