Commit 9b733ff 1 parent 433f35e commit 9b733ff Copy full SHA for 9b733ff
File tree 2 files changed +3
-13
lines changed
2 files changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -367,12 +367,7 @@ impl ItemSearchOptions {
367
367
if let Some ( ref trusted_only) = self . trusted_only {
368
368
params. add (
369
369
& kSecMatchTrustedOnly. to_void ( ) ,
370
- & ( if * trusted_only {
371
- CFBoolean :: true_value ( )
372
- } else {
373
- CFBoolean :: false_value ( )
374
- } )
375
- . to_void ( ) ,
370
+ & CFBoolean :: from ( * trusted_only) . to_void ( ) ,
376
371
) ;
377
372
}
378
373
Original file line number Diff line number Diff line change @@ -518,13 +518,8 @@ impl GenerateKeyOptions {
518
518
#[ cfg( feature = "sync-keychain" ) ]
519
519
if let Some ( ref synchronizable) = self . synchronizable {
520
520
attribute_key_values. push ( (
521
- unsafe { kSecAttrSynchronizable } . to_void ( ) ,
522
- ( if * synchronizable {
523
- CFBoolean :: true_value ( )
524
- } else {
525
- CFBoolean :: false_value ( )
526
- } )
527
- . to_void ( ) ,
521
+ unsafe { security_framework_sys:: item:: kSecAttrSynchronizable } . to_void ( ) ,
522
+ CFBoolean :: from ( * synchronizable) . to_void ( ) ,
528
523
) ) ;
529
524
}
530
525
You can’t perform that action at this time.
0 commit comments