Skip to content

Commit

Permalink
Format fix and check
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewdavidmackenzie committed Mar 3, 2025
1 parent 359bd13 commit 14f0fc1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
$(eval PI = $(shell cat /proc/cpuinfo 2>&1 | grep "Raspberry Pi"))

.PHONY: all
all: clippy build build-arm build-porky build-web test
all: clippy format-check build build-arm build-porky build-web test

.PHONY: clean
clean:
Expand All @@ -34,6 +34,10 @@ setup:
clippy:
cargo clippy --tests --no-deps

.PHONY: format-check
format-check:
cargo fmt --all -- --check

.PHONY: build
build:
cargo build
Expand Down
2 changes: 1 addition & 1 deletion pigdef/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use std::time::Duration;

/// [HardwareConfig] captures the current configuration of programmable GPIO pins
#[cfg_attr(feature = "std", derive(Debug))]
#[cfg_attr(all(debug_assertions, feature ="std"), derive(PartialEq))]
#[cfg_attr(all(debug_assertions, feature = "std"), derive(PartialEq))]
#[derive(Clone, Serialize, Deserialize, Default)]
pub struct HardwareConfig {
#[cfg(feature = "std")]
Expand Down

0 comments on commit 14f0fc1

Please sign in to comment.