Skip to content

Commit 041987e

Browse files
authored
Merge pull request #127 from epage/template
chore: Update from _rust template
2 parents d5a21e1 + 00cd59d commit 041987e

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.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
@@ -45,7 +45,7 @@ We ask that commits are atomic, meaning they are complete and have a single resp
4545
PRs should tell a cohesive story, with test and refactor commits that keep the
4646
fix or feature commits simple and clear.
4747

48-
Specifically, we would encouage
48+
Specifically, we would encourage
4949
- File renames be isolated into their own commit
5050
- Add tests in a commit before their feature or fix, showing the current behavior.
5151
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
@@ -80,6 +80,7 @@ string_lit_as_bytes = "warn"
8080
string_to_string = "warn"
8181
todo = "warn"
8282
trait_duplication_in_bounds = "warn"
83+
uninlined_format_args = "warn"
8384
verbose_file_reads = "warn"
8485
wildcard_imports = "warn"
8586
zero_sized_map_values = "warn"

src/assert.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -470,23 +470,23 @@ mod test {
470470
fn into_path_from_pred() {
471471
let pred = convert_path(predicate::eq(path::Path::new("hello.md")));
472472
let case = pred.find_case(false, path::Path::new("hello.md"));
473-
println!("Failing case: {:?}", case);
473+
println!("Failing case: {case:?}");
474474
assert!(case.is_none());
475475
}
476476

477477
#[test]
478478
fn into_path_from_bytes() {
479479
let pred = convert_path(b"hello\n" as &[u8]);
480480
let case = pred.find_case(false, path::Path::new("tests/fixture/hello.txt"));
481-
println!("Failing case: {:?}", case);
481+
println!("Failing case: {case:?}");
482482
assert!(case.is_none());
483483
}
484484

485485
#[test]
486486
fn into_path_from_str() {
487487
let pred = convert_path("hello\n");
488488
let case = pred.find_case(false, path::Path::new("tests/fixture/hello.txt"));
489-
println!("Failing case: {:?}", case);
489+
println!("Failing case: {case:?}");
490490
assert!(case.is_none());
491491
}
492492
}

0 commit comments

Comments
 (0)