Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright 2026 ResQ
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# rustfmt config for the on-chain programs workspace.
#
# programs/ is synced verbatim to the PUBLIC resq-software/programs repo, but the
# repo-root .rustfmt.toml is NOT part of that sync. Without this file the public
# repo falls back to rustfmt defaults and disagrees with the monorepo on
# formatting (notably `match_block_trailing_comma`), turning the sync's Format
# gate red. Mirroring the root's stable options here -- inside the synced subtree
# -- makes both repositories format identically. The root's nightly-only options
# (imports_granularity, group_imports, wrap_comments, comment_width) are omitted:
# they are silently ignored by the stable rustfmt that both CIs run for programs.
edition = "2021"
match_block_trailing_comma = true
4 changes: 2 additions & 2 deletions resq-airspace/src/instructions/record_crossing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ pub fn handler(
let mut fee_paid: u64 = 0;

match airspace.policy {
AccessPolicy::Open => {} // no permit, no fee
AccessPolicy::Open => {}, // no permit, no fee
AccessPolicy::Permit | AccessPolicy::Auction => {
let permit = ctx
.accounts
Expand Down Expand Up @@ -147,7 +147,7 @@ pub fn handler(
)?;
fee_paid = airspace.fee_lamports;
}
}
},
// Deny was already handled above.
AccessPolicy::Deny => unreachable!(),
}
Expand Down
Loading