mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Fix clippy in CI
This commit is contained in:
parent
0fec1fe28a
commit
0559f69a94
9
.github/workflows/rust.yml
vendored
9
.github/workflows/rust.yml
vendored
@ -3,7 +3,7 @@ name: Rust
|
||||
on: [ push, pull_request ]
|
||||
|
||||
jobs:
|
||||
check:
|
||||
check-format:
|
||||
runs-on: ubuntu-20.04
|
||||
defaults:
|
||||
run:
|
||||
@ -15,11 +15,8 @@ jobs:
|
||||
- name: Setup
|
||||
run: |
|
||||
rustup component add rustfmt
|
||||
rustup component add clippy
|
||||
- name: Format
|
||||
run: cargo fmt --all -- --check
|
||||
- name: Clippy
|
||||
run: cargo clippy --lib
|
||||
|
||||
build-x86:
|
||||
runs-on: ubuntu-20.04
|
||||
@ -43,6 +40,10 @@ jobs:
|
||||
run: sudo apt-get install -y libwayland-dev libxkbcommon-dev
|
||||
- name: Build
|
||||
run: cargo build --example desktop
|
||||
- name: Clippy
|
||||
run: |
|
||||
rustup component add clippy
|
||||
cargo clippy --lib
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: mapr
|
||||
|
||||
@ -3,9 +3,12 @@ mod input;
|
||||
mod platform;
|
||||
|
||||
pub(crate) mod example;
|
||||
pub(crate) mod io;
|
||||
pub(crate) mod render;
|
||||
pub(crate) mod util;
|
||||
|
||||
// Used from outside to initialize mapr
|
||||
pub mod io;
|
||||
pub mod main_loop;
|
||||
|
||||
// Used for benchmarking
|
||||
pub mod tesselation;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user