Skip to content

Commit 30f7557

Browse files
committed
lint prefer inline
1 parent e2f4334 commit 30f7557

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+720
-873
lines changed

.cargo/config.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ rustflags = [
44
"-C", "link-args=-pthread", # was -sUSE_PTHREADS=1 in earlier emscripten versions
55
"-C", "target-feature=+atomics,+bulk-memory,+mutable-globals",
66
"-Zlink-native-libraries=no"
7-
]
7+
]

.github/workflows/static_checks.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ jobs:
1010
- uses: actions/checkout@v4
1111
- name: Format
1212
shell: sh
13-
run: cargo fmt --all -- --check
13+
run: cargo fmt -- --config-path ./rustfmt.toml

rustfmt.toml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
imports_granularity="Item"
2+
group_imports = "StdExternalCrate"
3+
indent_style = "Block"
4+
reorder_imports = true
5+
blank_lines_lower_bound = 0
6+
blank_lines_upper_bound = 0
7+
brace_style = "SameLineWhere"
8+
condense_wildcard_suffixes = true
9+
control_brace_style = "ClosingNextLine"
10+
fn_params_layout = "Tall"
11+
imports_layout = "Horizontal"
12+
merge_derives = true
13+
reorder_impl_items = true

scripts/build-mac-dev.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cargo fmt
1+
cargo fmt -- --config-path ../rustfmt.toml
22
cargo clippy --fix --allow-dirty
33
cargo build --features="single_dim2,parallel,simd-stable" --no-default-features
44
cp target/debug/libgodot_rapier.dylib bin2d/addons/godot-rapier2d/bin/libgodot_rapier.macos.framework/libgodot_rapier.macos.dylib

scripts/build-mac-rel.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cargo fmt
1+
cargo fmt -- --config-path ../rustfmt.toml
22
cargo clippy --fix --allow-dirty
33
cargo build --release --features="single_dim2,parallel,simd-stable" --no-default-features
44
cp target/release/libgodot_rapier.dylib bin2d/addons/godot-rapier2d/bin/libgodot_rapier.macos.framework/libgodot_rapier.macos.dylib

src/bodies/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ pub mod rapier_collision_object;
55
pub mod rapier_direct_body_state_2d;
66
#[cfg(feature = "dim3")]
77
pub mod rapier_direct_body_state_3d;
8-
98
#[cfg(feature = "dim2")]
109
pub type RapierDirectBodyState = rapier_direct_body_state_2d::RapierDirectBodyState2D;
1110
#[cfg(feature = "dim2")]

0 commit comments

Comments
 (0)