File tree 4 files changed +7
-3
lines changed
bitbox02-rust/src/workflow
4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ make prepare-tidy
23
23
make -j8 unit-test
24
24
make -j8 run-unit-tests
25
25
make -j8 run-rust-unit-tests
26
+
27
+ # Rust linter
28
+ make -j8 run-rust-clippy
29
+
26
30
# Check that coverage report building is working.
27
31
make coverage
28
32
Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ impl CStrMut {
189
189
/// then are available.
190
190
pub fn write < F > ( & mut self , req : usize , f : F )
191
191
where
192
- F : FnOnce ( & mut [ u8 ] ) -> ( ) ,
192
+ F : FnOnce ( & mut [ u8 ] ) ,
193
193
{
194
194
// Must be room for requested amount of bytes and null terminator.
195
195
if self . cap - self . len < req + 1 {
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ pub unsafe extern "C" fn rust_workflow_confirm_blocking(
155
155
) -> bool {
156
156
let title = crate :: util:: rust_util_cstr ( params. title ) ;
157
157
let body = crate :: util:: rust_util_cstr ( params. body ) ;
158
- if params. font != core :: ptr :: null ( ) {
158
+ if ! params. font . is_null ( ) {
159
159
panic ! ( "Only default font supported" ) ;
160
160
}
161
161
let params = confirm:: Params {
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ pub async fn unlock_keystore(title: &str) -> bool {
66
66
Ok ( ( ) ) => true ,
67
67
Err ( keystore:: Error :: IncorrectPassword { remaining_attempts } ) => {
68
68
let msg = match remaining_attempts {
69
- 1 => format ! ( "Wrong password\n 1 try remains" ) ,
69
+ 1 => "Wrong password\n 1 try remains" . into ( ) ,
70
70
n => format ! ( "Wrong password\n {} tries remain" , n) ,
71
71
} ;
72
72
status ( & msg, false ) . await ;
You can’t perform that action at this time.
0 commit comments