File tree Expand file tree Collapse file tree 5 files changed +19
-32
lines changed Expand file tree Collapse file tree 5 files changed +19
-32
lines changed Original file line number Diff line number Diff line change 13
13
workflow_dispatch :
14
14
15
15
env :
16
- RUST_VERSION : 1.78 .0
16
+ RUST_VERSION : 1.80 .0
17
17
18
18
jobs :
19
19
pre-commit :
Original file line number Diff line number Diff line change 26
26
name : row
27
27
CARGO_TERM_COLOR : always
28
28
CLICOLOR : 1
29
- RUST_VERSION : 1.78 .0
29
+ RUST_VERSION : 1.80 .0
30
30
31
31
jobs :
32
32
source :
@@ -172,7 +172,7 @@ jobs:
172
172
~/.cargo/registry/cache/
173
173
~/.cargo/git/db/
174
174
target/
175
- key : ${{ runner.os }}-rust-${{ env.RUST_VERSION }}-cargo-publish-${{ matrix.target }}-${{ hashFiles('**/Cargo.lock') }}
175
+ key : ${{ runner.os }}-rust-${{ env.RUST_VERSION }}-cargo-publish-${{ hashFiles('**/Cargo.lock') }}
176
176
- name : Dry run
177
177
run : cargo publish --all-features --dry-run
178
178
- name : Publish to crates.io
Original file line number Diff line number Diff line change 20
20
CARGO_TERM_COLOR : always
21
21
ROW_COLOR : always
22
22
CLICOLOR : 1
23
- RUST_LATEST_VERSION : 1.78 .0
23
+ RUST_LATEST_VERSION : 1.80 .0
24
24
25
25
jobs :
26
26
unit_test :
@@ -34,14 +34,14 @@ jobs:
34
34
rust :
35
35
# Oldest supported version of rust
36
36
- 1.77.2
37
- - 1.78 .0
37
+ - 1.80 .0
38
38
mode :
39
39
- debug
40
40
41
41
include :
42
42
# Add a release build on linux with the latest version of rust
43
43
- os : ubuntu-22.04
44
- rust : 1.78 .0
44
+ rust : 1.80 .0
45
45
mode : release
46
46
47
47
steps :
Original file line number Diff line number Diff line change 2
2
autoupdate_schedule : quarterly
3
3
autoupdate_branch : ' trunk'
4
4
autofix_prs : false
5
- # rust does not work on pre-commit.ci: could not create temp file /opt/rust/rustup/tmp/17c53uaz8kdwrx0k_file: Read-only file system
6
- skip : [fmt, cargo- check, clippy]
5
+ # rust does not work on pre-commit.ci
6
+ skip : [fmt, check, clippy]
7
7
8
8
default_language_version :
9
- rust : 1.78 .0
9
+ rust : 1.80 .0
10
10
11
11
repos :
12
- - repo : https://github.com/Young-Naive-Simple /pre-commit-rust/
13
- rev : 3a8de64acc969112746489e5ec1f0b13e00d871e
12
+ - repo : https://github.com/backplane /pre-commit-rust-hooks
13
+ rev : v1.1.0
14
14
hooks :
15
15
- id : fmt
16
- - id : cargo- check
16
+ - id : check
17
17
- id : clippy
18
18
args :
19
19
- --all-targets
@@ -30,11 +30,10 @@ repos:
30
30
- id : check-yaml
31
31
- id : check-case-conflict
32
32
- id : mixed-line-ending
33
- # fails with _cgo_export.c:3:10: fatal error: 'stdlib.h' file not found on Mac.
34
- # - repo: https://github.com/rhysd/actionlint
35
- # rev: v1.6.27
36
- # hooks:
37
- # - id: actionlint
33
+ - repo : https://github.com/rhysd/actionlint
34
+ rev : v1.7.1
35
+ hooks :
36
+ - id : actionlint
38
37
- repo : https://github.com/astral-sh/ruff-pre-commit
39
38
rev : ' v0.5.0'
40
39
hooks :
Original file line number Diff line number Diff line change @@ -530,29 +530,17 @@ impl Group {
530
530
531
531
/// Get the group's `split_by_sort_key`.
532
532
pub fn split_by_sort_key ( & self ) -> bool {
533
- if let Some ( split_by_sort_key) = self . split_by_sort_key {
534
- split_by_sort_key
535
- } else {
536
- false
537
- }
533
+ self . split_by_sort_key . unwrap_or_default ( )
538
534
}
539
535
540
536
/// Get the group's `reverse_sort`.
541
537
pub fn reverse_sort ( & self ) -> bool {
542
- if let Some ( reverse_sort) = self . reverse_sort {
543
- reverse_sort
544
- } else {
545
- false
546
- }
538
+ self . reverse_sort . unwrap_or_default ( )
547
539
}
548
540
549
541
/// Get the group's `submit_whole`.
550
542
pub fn submit_whole ( & self ) -> bool {
551
- if let Some ( submit_whole) = self . submit_whole {
552
- submit_whole
553
- } else {
554
- false
555
- }
543
+ self . submit_whole . unwrap_or_default ( )
556
544
}
557
545
558
546
/// Resolve omitted keys from the given template.
You can’t perform that action at this time.
0 commit comments