Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: 1.89
override: true
- uses: actions-rs/cargo@v1
with:
Expand All @@ -26,7 +26,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: 1.89
target: wasm32-unknown-unknown
override: true
- uses: actions-rs/cargo@v1
Expand All @@ -41,7 +41,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: 1.89
override: true
- run: sudo apt-get install libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev
- uses: actions-rs/cargo@v1
Expand All @@ -56,7 +56,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: 1.89
override: true
components: rustfmt
- uses: actions-rs/cargo@v1
Expand All @@ -71,7 +71,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: 1.89
override: true
components: clippy
- uses: actions-rs/cargo@v1
Expand All @@ -86,7 +86,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.89.0
toolchain: 1.89
target: wasm32-unknown-unknown
override: true
- name: Download and install Trunk binary
Expand Down Expand Up @@ -118,7 +118,7 @@ jobs:
- uses: actions/checkout@master
- uses: actions-rs/[email protected]
with:
toolchain: stable
toolchain: 1.89
target: ${{ matrix.TARGET }}
override: true
- uses: actions-rs/cargo@v1
Expand Down
8 changes: 5 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ unsafe_op_in_unsafe_fn = "warn" # `unsafe_op_in_unsafe_f
unused_extern_crates = "warn"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_variables = "allow"

trivial_casts = "allow"
unused_qualifications = "allow"
Expand Down Expand Up @@ -232,7 +233,8 @@ string_lit_chars_any = "warn"
string_to_string = "warn"
suspicious_command_arg_space = "warn"
suspicious_xor_used_as_pow = "warn"
todo = "warn"
# Let todo for development
todo = "allow"
too_long_first_doc_paragraph = "warn"
trailing_empty_array = "warn"
trait_duplication_in_bounds = "warn"
Expand All @@ -249,16 +251,16 @@ unnecessary_struct_initialization = "warn"
unnecessary_wraps = "warn"
unused_peekable = "warn"
unused_rounding = "warn"
# unused_self = "warn"
unused_trait_names = "warn"
unwrap_used = "warn"
# allow unused when developing
unused_self = "allow"
use_self = "warn"
useless_transmute = "warn"
verbose_file_reads = "warn"
wildcard_dependencies = "warn"
wildcard_imports = "warn"
zero_sized_map_values = "warn"

manual_range_contains = "allow"
map_unwrap_or = "allow"
needless_return = "allow"
6 changes: 6 additions & 0 deletions fix.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
# This scripts runs various CI-like checks in a convenient way.
set -eu

cargo fmt --all -q
cargo fix --lib -p simu --allow-dirty
Loading
Loading