File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -43,9 +43,9 @@ impl Sealed {
43
43
self . inner ( )
44
44
. attributes
45
45
. get ( name)
46
- . ok_or ( SealError :: MissingAttribute ( name. to_string ( ) ) ) ?
46
+ . ok_or_else ( || SealError :: MissingAttribute ( name. to_string ( ) ) ) ?
47
47
. as_ciphertext ( )
48
- . ok_or ( SealError :: InvalidCiphertext ( name. to_string ( ) ) )
48
+ . ok_or_else ( || SealError :: InvalidCiphertext ( name. to_string ( ) ) )
49
49
} )
50
50
. collect :: < Result < Vec < & str > , SealError > > ( ) ?;
51
51
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ impl Unsealed {
52
52
53
53
pub ( super ) fn add_protected ( & mut self , name : impl Into < String > , plaintext : Plaintext ) {
54
54
let name = name. into ( ) ;
55
- let descriptor = format ! ( "{}{}" , self . descriptor. as_deref( ) . unwrap_or( "" ) , & name) ;
55
+ let descriptor = format ! ( "{}/ {}" , self . descriptor. as_deref( ) . unwrap_or( "" ) , & name) ;
56
56
self . protected . insert ( name, ( plaintext, descriptor) ) ;
57
57
}
58
58
You can’t perform that action at this time.
0 commit comments