Skip to content

Commit dd6f155

Browse files
committed
Test for Debug
1 parent 54887d7 commit dd6f155

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/rust.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ jobs:
4040
check_msrv:
4141
strategy:
4242
matrix:
43-
minimal-versions: [true, false]
43+
minimal-versions: [true]
44+
tc: [1.80, 1.81, 1.82, 1.83, 1.84, 1.85]
4445
name: Check overall MSRV (1.66.0)
4546
runs-on: ubuntu-latest
4647
steps:
@@ -51,11 +52,12 @@ jobs:
5152

5253
- name: Generate lockfile with minimal dependency versions
5354
run: cargo +nightly generate-lockfile -Zminimal-versions
54-
if: ${{ matrix.minimal-versions }}
55+
# if: ${{ matrix.minimal-versions }}
5556

56-
- uses: dtolnay/rust-toolchain@1.66.0
57+
- uses: dtolnay/rust-toolchain@master
5758
with:
5859
target: aarch64-linux-android
60+
toolchain: ${{ matrix.tc }}
5961

6062
- name: cargo check
6163
run: >

ndk/src/system_properties.rs

+4
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ pub enum GetError<T> {
7878
ParseError(T),
7979
}
8080

81+
fn test() {
82+
let x = get::<u32>(c"test").unwrap();
83+
}
84+
8185
/// Internal helper to deduplicate the implementation between [`get()`] and [`Property::read()`].
8286
fn process_parse<T: FromStr>(get: impl FnOnce(*mut c_char) -> i32) -> Result<T, GetError<T::Err>> {
8387
let mut value = [0u8; ffi::PROP_VALUE_MAX as usize];

0 commit comments

Comments
 (0)