File tree 6 files changed +15
-14
lines changed
pw_modal/password_generator
6 files changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -123,8 +123,7 @@ mod tests {
123
123
124
124
symbols. append ( & Symbols :: LOWER_ALPHA ) ;
125
125
126
- let password =
127
- generate_password ( 32 , & symbols) . expect ( "Password generation should not fail." ) ;
126
+ let password = generate_password ( 32 , & symbols) ;
128
127
assert_eq ! ( password. len( ) , 32 ) ;
129
128
130
129
assert ! ( password. chars( ) . into_iter( ) . all( |c| symbols. contains( & c) ) ) ;
@@ -145,8 +144,7 @@ mod tests {
145
144
symbols. append ( & Symbols :: NUMBERS ) ;
146
145
symbols. append ( & Symbols :: SPECIAL ) ;
147
146
148
- let password =
149
- generate_password ( 64 , & symbols) . expect ( "Password generation should not fail." ) ;
147
+ let password = generate_password ( 64 , & symbols) ;
150
148
assert_eq ! ( password. len( ) , 64 ) ;
151
149
152
150
assert ! ( password. chars( ) . into_iter( ) . all( |c| symbols. contains( & c) ) ) ;
Original file line number Diff line number Diff line change 3
3
//! It uses the [core](pwduck_core) module internally to manage the passwords of the user.
4
4
#![ deny( missing_docs) ]
5
5
#![ deny( missing_debug_implementations) ]
6
- #![ deny( unused_results) ]
6
+ #![ cfg_attr ( not ( test ) , deny( unused_results) ) ]
7
7
#![ cfg_attr( not( test) , forbid( unsafe_code) ) ]
8
8
#![ cfg_attr( coverage, feature( no_coverage) ) ]
9
9
# trait for.
72
69
#[ derive( Default ) ]
@@ -126,7 +123,7 @@ mod desktop {
126
123
}
127
124
128
125
async fn auto_type ( sequence : Sequence ) -> Result < ( ) , pwduck_gui:: error:: PWDuckGuiError > {
129
- async_std:: task:: sleep ( std:: time:: Duration :: from_millis ( 1000 ) ) . await ;
126
+ async_std:: task:: sleep ( std:: time:: Duration :: from_millis ( 5000 ) ) . await ;
130
127
131
128
let mut enigo = enigo:: Enigo :: new ( ) ;
132
129
#[ cfg( target_os = "linux" ) ]
@@ -135,7 +132,7 @@ mod desktop {
135
132
136
133
// Check if xdotools is available
137
134
drop ( which:: which ( "xdotool" )
138
- . map_err ( |err| PWDuckGuiError :: String ( format ! ( "xdotool could not be found. Maybe it is not installed on your system? ({})" , err) ) ) ?) ;
135
+ . map_err ( |err| pwduck_gui :: error :: PWDuckGuiError :: String ( format ! ( "xdotool could not be found. Maybe it is not installed on your system? ({})" , err) ) ) ?) ;
139
136
}
140
137
141
138
for part in sequence. iter ( ) {
You can’t perform that action at this time.
0 commit comments