Skip to content

Commit 2f05276

Browse files
authored
Re-enable improper_ctypes lint on bindings and update CI (#73)
* Re-enable improper_ctypes lint on bindings The linked issue rust-lang/rust#34798 has since been fixed, and rust will not warn if PhantomData is used in FFI structs. See also: rust-lang/rust#39462 * Update ci.yml Fixes warnings on github actions about updating to Node v20 by updating the used actions. actions-rs/toolchain is not maintained anymore, switch to dtolnay/rust-toolchain instead.
1 parent 8885917 commit 2f05276

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

.github/workflows/ci.yml

+5-11
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,14 @@ jobs:
1212
matrix:
1313
toolchain: [stable, beta, nightly]
1414
name: Rust
15-
runs-on: ubuntu-20.04
15+
runs-on: ubuntu-22.04
1616
steps:
17-
- uses: actions/checkout@v3
18-
- uses: actions-rs/toolchain@v1
17+
- uses: actions/checkout@v4
18+
- uses: dtolnay/rust-toolchain@master
1919
with:
2020
profile: minimal
2121
override: true
2222
toolchain: ${{ matrix.toolchain }}
23-
- uses: actions-rs/cargo@v1
24-
name: Build
25-
with:
26-
command: build
27-
- uses: actions-rs/cargo@v1
28-
name: Test
29-
with:
30-
command: test
23+
- run: cargo build
24+
- run: cargo test
3125

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ pub fn succeeded(error: FT_Error) -> bool {
2727
error == freetype::FT_Err_Ok as FT_Error
2828
}
2929

30-
#[allow(improper_ctypes)] // https://github.com/rust-lang/rust/issues/34798
30+
#[deny(improper_ctypes)]
3131
pub mod freetype;
3232
pub mod tt_os2;

0 commit comments

Comments
 (0)