Skip to content

Commit b99b779

Browse files
authored
Merge pull request #113 from epage/template
chore: Update from _rust template
2 parents 2659baf + 6fab6d9 commit b99b779

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

.github/workflows/audit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- bans licenses sources
4848
steps:
4949
- uses: actions/checkout@v4
50-
- uses: EmbarkStudios/cargo-deny-action@v1
50+
- uses: EmbarkStudios/cargo-deny-action@v2
5151
with:
5252
command: check ${{ matrix.checks }}
5353
rust-version: stable

.github/workflows/pre-commit.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,6 @@ jobs:
2424
steps:
2525
- uses: actions/checkout@v4
2626
- uses: actions/setup-python@v5
27+
with:
28+
python-version: '3.x'
2729
- uses: pre-commit/[email protected]

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ We ask that commits are atomic, meaning they are complete and have a single resp
5353
PRs should tell a cohesive story, with test and refactor commits that keep the
5454
fix or feature commits simple and clear.
5555

56-
Specifically, we would encouage
56+
Specifically, we would encourage
5757
- File renames be isolated into their own commit
5858
- Add tests in a commit before their feature or fix, showing the current behavior.
5959
The diff for the feature/fix commit will then show how the behavior changed,

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ string_lit_as_bytes = "warn"
8383
string_to_string = "warn"
8484
todo = "warn"
8585
trait_duplication_in_bounds = "warn"
86+
uninlined_format_args = "warn"
8687
verbose_file_reads = "warn"
8788
wildcard_imports = "warn"
8889
zero_sized_map_values = "warn"

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ fn list(args: args::ListArgs) -> proc_exit::ExitResult {
9797
writeln!(
9898
stdout,
9999
"{}",
100-
Styled::new(format_args!("Message: {}", message), style)
100+
Styled::new(format_args!("Message: {message}"), style)
101101
)
102102
.with_code(proc_exit::Code::FAILURE)?;
103103
}
@@ -125,7 +125,7 @@ fn list(args: args::ListArgs) -> proc_exit::ExitResult {
125125
writeln!(
126126
stdout,
127127
"{}",
128-
Styled::new(format_args!("- {}: {}", name, summary), style),
128+
Styled::new(format_args!("- {name}: {summary}"), style),
129129
)
130130
.with_code(proc_exit::Code::FAILURE)?;
131131
}

0 commit comments

Comments
 (0)