Skip to content

Commit

Permalink
Refactor compile_error message
Browse files Browse the repository at this point in the history
In preparation for enabling rustfmt on `lib.rs` refactor the
`compile_error` call so that the formatter does not touch it.
  • Loading branch information
tcharding committed Jul 19, 2022
1 parent 6461e2d commit 65d19d9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lib.rs
Expand Up @@ -50,9 +50,10 @@ compile_error!("at least one of the `std` or `no-std` features must be enabled")

// Disable 16-bit support at least for now as we can't guarantee it yet.
#[cfg(target_pointer_width = "16")]
compile_error!("rust-bitcoin currently only supports architectures with pointers wider
than 16 bits, let us know if you want 16-bit support. Note that we do
NOT guarantee that we will implement it!");
compile_error!(
"rust-bitcoin currently only supports architectures with pointers wider than 16 bits, let us
know if you want 16-bit support. Note that we do NOT guarantee that we will implement it!"
);

#[cfg(bench)] extern crate test;

Expand Down

0 comments on commit 65d19d9

Please sign in to comment.