Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: cargo fmt #1044

Merged
merged 1 commit into from
Jul 12, 2024
Merged

fix: cargo fmt #1044

merged 1 commit into from
Jul 12, 2024

Conversation

jsvisa
Copy link
Contributor

@jsvisa jsvisa commented Jul 12, 2024

Motivation

error from https://github.com/alloy-rs/alloy/actions/runs/9904006769/job/27360566257?pr=1043

Run cargo fmt --all --check
Diff in /home/runner/work/alloy/alloy/crates/eips/src/eip7702/auth_list.rs:13:
 #[derive(Debug, Clone, Hash, RlpEncodable, RlpDecodable, Eq, PartialEq)]
 #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
 #[cfg_attr(feature = "serde", serde(rename_all = "camelCase"))]
-#[cfg_attr(
-    any(test, feature = "arbitrary"),
-    derive(arbitrary::Arbitrary)
-)]
+#[cfg_attr(any(test, feature = "arbitrary"), derive(arbitrary::Arbitrary))]
 pub struct Authorization {
     /// The chain ID of the authorization.
     pub chain_id: ChainId,
Diff in /home/runner/work/alloy/alloy/crates/eips/src/eip7702/auth_list.rs:233:
 /// The wrapper type is used for RLP encoding and decoding.
 #[derive(Default, Debug, Copy, Clone, Hash, Eq, PartialEq)]
 #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
-#[cfg_attr(
-    any(test, feature = "arbitrary"),
-    derive(arbitrary::Arbitrary)
-)]
+#[cfg_attr(any(test, feature = "arbitrary"), derive(arbitrary::Arbitrary))]
 pub struct OptionalNonce(Option<u64>);
 
 impl OptionalNonce {
Error: Process completed with exit code 1.

Solution

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Signed-off-by: jsvisa <[email protected]>
@mattsse mattsse merged commit bec6098 into alloy-rs:main Jul 12, 2024
22 checks passed
@jsvisa jsvisa deleted the fmt-warn branch July 12, 2024 09:05
ben186 pushed a commit to ben186/alloy that referenced this pull request Jul 27, 2024
j75689 pushed a commit to bnb-chain/alloy that referenced this pull request Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants