@@ -734,24 +734,24 @@ fn create(ui: &mut Cursive, store: PasswordStoreType) {
734734 . with_name ( "password_length" )
735735 . fixed_width ( 5 ) ;
736736
737- let reveal_checkbox = LinearLayout :: horizontal ( ) . child (
738- cursive:: views:: Checkbox :: new ( ) . on_change ( {
737+ let reveal_checkbox = LinearLayout :: horizontal ( )
738+ . child ( cursive:: views:: Checkbox :: new ( ) . on_change ( {
739739 let reveal_flag = reveal_flag. clone ( ) ;
740740 move |siv, checked| {
741741 siv. call_on_name ( "new_password_input" , |e : & mut EditView | {
742742 e. set_secret ( !checked) ;
743743 } ) ;
744744 * reveal_flag. lock ( ) . unwrap ( ) = checked;
745745 }
746- } ) ,
747- ) . child ( TextView :: new ( "Reveal password" ) ) ;
746+ } ) )
747+ . child ( TextView :: new ( "Reveal password" ) ) ;
748748
749749 let dialog_content = LinearLayout :: vertical ( )
750750 . child ( select. scrollable ( ) . fixed_size ( ( 30 , 5 ) ) )
751751 . child (
752752 LinearLayout :: horizontal ( )
753753 . child ( TextView :: new ( "Length: " ) )
754- . child ( length_input)
754+ . child ( length_input) ,
755755 )
756756 . child ( reveal_checkbox) ;
757757
@@ -792,16 +792,16 @@ fn create(ui: &mut Cursive, store: PasswordStoreType) {
792792 move |s| {
793793 let category = * category_value. lock ( ) . unwrap ( ) ;
794794 let length = * password_length. lock ( ) . unwrap ( ) ;
795- let new_password = ripasso:: password_generator:: password_generator ( length, category) ;
795+ let new_password =
796+ ripasso:: password_generator:: password_generator ( length, category) ;
796797
797798 s. call_on_name ( "new_password_input" , |e : & mut EditView | {
798799 e. set_content ( new_password) ;
799800 } ) ;
800801 }
801802 } )
802803 . button ( CATALOG . gettext ( "Generate Passphrase" ) , move |s| {
803- let new_password = match ripasso:: passphrase_generator:: passphrase_generator ( 6 )
804- {
804+ let new_password = match ripasso:: passphrase_generator:: passphrase_generator ( 6 ) {
805805 Ok ( words) => words. join ( " " ) ,
806806 Err ( err) => {
807807 helpers:: errorbox ( s, & ripasso:: pass:: Error :: from ( err) ) ;
@@ -830,7 +830,6 @@ fn create(ui: &mut Cursive, store: PasswordStoreType) {
830830 ui. add_layer ( ev) ;
831831}
832832
833-
834833fn delete_recipient ( ui : & mut Cursive , store : PasswordStoreType ) -> Result < ( ) > {
835834 let mut l = ui
836835 . find_name :: < SelectView < Option < ( PathBuf , Recipient ) > > > ( "recipients" )
0 commit comments