Skip to content

Commit 4dd55b3

Browse files
authored
chore: Iterate on the template (#65)
2 parents dd01d8b + f3e0cc0 commit 4dd55b3

5 files changed

Lines changed: 29 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
with:
5252
toolchain: ${{ matrix.rust }}
5353
- name: Initialize cache
54-
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
54+
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
5555
- name: Install cargo-hack
5656
uses: taiki-e/install-action@97a5807a604e12de3a13b52d868ebecaeeea757c # v2.75.4
5757
with:
@@ -76,7 +76,7 @@ jobs:
7676
with:
7777
toolchain: stable
7878
- name: Initialize cache
79-
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
79+
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
8080
- name: Install cargo-hack
8181
uses: taiki-e/install-action@97a5807a604e12de3a13b52d868ebecaeeea757c # v2.75.4
8282
with:
@@ -118,7 +118,7 @@ jobs:
118118
with:
119119
toolchain: stable
120120
- name: Initialize cache
121-
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
121+
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
122122
- name: "Is lockfile updated?"
123123
run: cargo update --workspace --locked
124124
docs:
@@ -134,7 +134,7 @@ jobs:
134134
with:
135135
toolchain: "1.95" # STABLE
136136
- name: Initialize cache
137-
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
137+
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
138138
- name: Check documentation
139139
env:
140140
RUSTDOCFLAGS: -D warnings
@@ -153,7 +153,7 @@ jobs:
153153
toolchain: "1.95" # STABLE
154154
components: rustfmt
155155
- name: Initialize cache
156-
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
156+
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
157157
- name: Check formatting
158158
run: cargo fmt --check
159159
clippy:
@@ -172,7 +172,7 @@ jobs:
172172
toolchain: "1.95" # STABLE
173173
components: clippy
174174
- name: Initialize cache
175-
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
175+
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
176176
- name: Install SARIF tools
177177
run: cargo install clippy-sarif --locked
178178
- name: Install SARIF tools
@@ -204,7 +204,7 @@ jobs:
204204
with:
205205
toolchain: stable
206206
- name: Initialize cache
207-
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
207+
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
208208
- name: Install cargo-tarpaulin
209209
run: cargo install cargo-tarpaulin
210210
- name: Gather coverage

.github/workflows/committed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ jobs:
2626
fetch-depth: 0
2727
persist-credentials: false
2828
- name: Lint Commits
29-
uses: crate-ci/committed@4cd58ed75e5f581ba45f42ef52e055cc001def37 # master
29+
uses: crate-ci/committed@faeed42f2e10c244533a01525f13c4d8b6ce383f # v1.11.1

.github/workflows/rust-next.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
with:
4242
toolchain: ${{ matrix.rust }}
4343
- name: Initialize cache
44-
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
44+
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
4545
- name: Install cargo-hack
4646
uses: taiki-e/install-action@97a5807a604e12de3a13b52d868ebecaeeea757c # v2.75.4
4747
with:
@@ -68,7 +68,7 @@ jobs:
6868
with:
6969
toolchain: stable
7070
- name: Initialize cache
71-
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
71+
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
7272
- name: Install cargo-hack
7373
uses: taiki-e/install-action@97a5807a604e12de3a13b52d868ebecaeeea757c # v2.75.4
7474
with:

.github/workflows/spelling.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ jobs:
2424
with:
2525
persist-credentials: false
2626
- name: Spell Check Repo
27-
uses: crate-ci/typos@8f11c0dc0f31c780c45b3dd5b72ff4b48a350b75 # master
27+
uses: crate-ci/typos@bbaefadf97b0ec5fdc942684b647f1a6ab250274 # v1.46.0

Cargo.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ include = [
1818

1919
[workspace.lints.rust]
2020
rust_2018_idioms = { level = "warn", priority = -1 }
21+
22+
non_ascii_idents = "warn"
23+
trivial_numeric_casts = "warn"
2124
unnameable_types = "warn"
2225
unreachable_pub = "warn"
2326
unsafe_op_in_unsafe_fn = "warn"
@@ -26,11 +29,16 @@ unused_macro_rules = "warn"
2629
unused_qualifications = "warn"
2730

2831
[workspace.lints.clippy]
32+
allow_attributes_without_reason = "warn"
2933
bool_assert_comparison = "allow"
3034
branches_sharing_code = "allow"
35+
cast_possible_truncation = "warn"
36+
cast_possible_wrap = "warn"
37+
cast_sign_loss = "warn"
3138
checked_conversions = "warn"
3239
collapsible_else_if = "allow"
3340
collapsible_match = "allow"
41+
collection_is_never_read = "warn"
3442
create_dir = "warn"
3543
dbg_macro = "warn"
3644
debug_assert_with_mut_call = "warn"
@@ -43,8 +51,10 @@ explicit_into_iter_loop = "warn"
4351
fallible_impl_from = "warn"
4452
filter_map_next = "warn"
4553
flat_map_option = "warn"
54+
float_cmp = "warn"
4655
float_cmp_const = "warn"
4756
fn_params_excessive_bools = "warn"
57+
fn_to_numeric_cast_any = "warn"
4858
from_iter_instead_of_collect = "warn"
4959
if_same_then_else = "allow"
5060
implicit_clone = "warn"
@@ -61,10 +71,12 @@ linkedlist = "warn"
6171
lossy_float_literal = "warn"
6272
macro_use_imports = "warn"
6373
mem_forget = "warn"
74+
mismatching_type_param_order = "warn"
6475
mutex_integer = "warn"
6576
needless_continue = "allow"
6677
needless_for_each = "warn"
6778
negative_feature_names = "warn"
79+
partial_pub_fields = "warn"
6880
path_buf_push_overwrite = "warn"
6981
ptr_as_ptr = "warn"
7082
rc_mutex = "warn"
@@ -75,13 +87,19 @@ result_large_err = "allow"
7587
same_functions_in_if_condition = "warn"
7688
self_named_module_files = "warn"
7789
semicolon_if_nothing_returned = "warn"
90+
should_panic_without_expect = "warn"
7891
str_to_string = "warn"
7992
string_add = "warn"
8093
string_add_assign = "warn"
8194
string_lit_as_bytes = "warn"
8295
todo = "warn"
8396
trait_duplication_in_bounds = "warn"
97+
undocumented_unsafe_blocks = "warn"
8498
uninlined_format_args = "warn"
99+
unnecessary_safety_comment = "warn"
100+
unnecessary_safety_doc = "warn"
101+
unseparated_literal_suffix = "warn"
102+
use_self = "warn"
85103
verbose_file_reads = "warn"
86104
wildcard_imports = "warn"
87105
zero_sized_map_values = "warn"

0 commit comments

Comments
 (0)