File tree Expand file tree Collapse file tree 2 files changed +15
-26
lines changed Expand file tree Collapse file tree 2 files changed +15
-26
lines changed Original file line number Diff line number Diff line change @@ -28,26 +28,12 @@ jobs:
28
28
- i686-linux-android
29
29
30
30
steps :
31
- - uses : actions/checkout@v2
31
+ - uses : actions/checkout@v3
32
32
33
- - name : Install Rust ${{ matrix.toolchain }}
34
- uses : actions-rs/toolchain@v1
33
+ - uses : dtolnay/rust-toolchain@${{ matrix.toolchain }}
35
34
with :
36
- profile : minimal
37
- toolchain : ${{ matrix.toolchain }}
38
35
target : ${{ matrix.target }}
39
36
40
- - name : Build
41
- uses : actions-rs/cargo@v1
42
- with :
43
- command : build
44
-
45
- - name : Generate docs
46
- uses : actions-rs/cargo@v1
47
- with :
48
- command : doc
49
-
50
- - name : Run tests
51
- uses : actions-rs/cargo@v1
52
- with :
53
- command : test
37
+ - run : cargo build --target=${{ matrix.target }}
38
+ - run : cargo doc --target=${{ matrix.target }}
39
+ - run : cargo test --target=${{ matrix.target }}
Original file line number Diff line number Diff line change @@ -292,13 +292,16 @@ impl<'a> PlatformLogWriter<'a> {
292
292
293
293
#[ cfg( target_os = "android" ) ]
294
294
pub fn new ( level : Level , tag : & CStr ) -> PlatformLogWriter {
295
- Self :: new_with_priority ( match level {
296
- Level :: Warn => LogPriority :: WARN ,
297
- Level :: Info => LogPriority :: INFO ,
298
- Level :: Debug => LogPriority :: DEBUG ,
299
- Level :: Error => LogPriority :: ERROR ,
300
- Level :: Trace => LogPriority :: VERBOSE ,
301
- } )
295
+ Self :: new_with_priority (
296
+ match level {
297
+ Level :: Warn => LogPriority :: WARN ,
298
+ Level :: Info => LogPriority :: INFO ,
299
+ Level :: Debug => LogPriority :: DEBUG ,
300
+ Level :: Error => LogPriority :: ERROR ,
301
+ Level :: Trace => LogPriority :: VERBOSE ,
302
+ } ,
303
+ tag,
304
+ )
302
305
}
303
306
304
307
#[ cfg( not( target_os = "android" ) ) ]
You can’t perform that action at this time.
0 commit comments