Skip to content

Commit 43793c0

Browse files
committed
Fix stable vs. nightly comment formatting
1 parent 378855a commit 43793c0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
uses: cachix/install-nix-action@v17
4343

4444
- name: Run cargo fmt
45-
run: nix develop .#${{ matrix.rust-toolchain }} --command cargo fmt
45+
run: nix develop .#${{ matrix.rust-toolchain }} --command cargo fmt --check
4646

4747
cargo-clippy:
4848
runs-on: ubuntu-latest

fathom/src/surface/distillation.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ impl<'interner, 'arena, 'env> Context<'interner, 'arena, 'env> {
5959
}
6060

6161
fn push_local(&mut self, name: Option<StringId>) -> StringId {
62-
let name =
63-
name.unwrap_or_else(|| {
64-
self.interner.borrow_mut().get_or_intern_static("_") // TODO: choose a better name?
65-
});
62+
let name = name.unwrap_or_else(|| {
63+
// TODO: choose a better name?
64+
self.interner.borrow_mut().get_or_intern_static("_")
65+
});
6666

6767
// TODO: avoid globals
6868
// TODO: ensure we chose a correctly bound name

0 commit comments

Comments
 (0)