Skip to content

Commit 92dba43

Browse files
authored
Merge pull request #36 from epage/template
chore: Update from _rust template
2 parents dfa78e8 + 0b57b95 commit 92dba43

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
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/action@v3.0.1

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"

examples/tree.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fn tree<P: AsRef<Path>>(p: P) -> io::Result<Tree<String>> {
2626
fn main() {
2727
let dir = env::args().nth(1).unwrap_or_else(|| String::from("."));
2828
match tree(dir) {
29-
Ok(tree) => println!("{}", tree),
30-
Err(err) => println!("error: {}", err),
29+
Ok(tree) => println!("{tree}"),
30+
Err(err) => println!("error: {err}"),
3131
}
3232
}

0 commit comments

Comments
 (0)