You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
65186e7 Add githooks (Tobin C. Harding)
6d76bd4 Add clippy to CI (Tobin C. Harding)
9f1ebb9 Allow nonminimal_bool in unit test (Tobin C. Harding)
685444c Use "a".repeats() instead of manual implementation (Tobin C. Harding)
42de876 Allow let_and_return for feature guarded code (Tobin C. Harding)
d64132c Allow missing_safety_doc (Tobin C. Harding)
2cb687f Use to_le_bytes instead of mem::transmute (Tobin C. Harding)
c15b9d2 Remove unneeded explicit reference (Tobin C. Harding)
35d59e7 Remove explicit 'static lifetime (Tobin C. Harding)
1a582db Remove redundant import (Tobin C. Harding)
Pull request description:
The first 8 patches clear clippy warnings. Next we add a CI job to run clippy. Finally we add a `githooks` directory that includes running clippy, also adds a section to the README on how to use the githooks. This is identical to the text in the [open PR](rust-bitcoin/rust-bitcoin#1044) on `rust-bitcoin` that adds githooks _without_ yet adding clippy.
**Note**: The new clippy CI job runs and is green :)
ACKs for top commit:
Kixunil:
ACK 65186e7
apoelstra:
ACK 65186e7
Tree-SHA512: f70a157896ce2a83af8cfc10f2fbacc8f68256ac96ef7dec4d190aa72324b568d2267418eb4fe99099aeda5486957c31070943d7c209973859b7b9290676ccd7
Copy file name to clipboardExpand all lines: README.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,17 @@ Contributions to this library are welcome. A few guidelines:
22
22
* No crypto should be implemented in Rust, with the possible exception of hash functions. Cryptographic contributions should be directed upstream to libsecp256k1.
23
23
* This library should always compile with any combination of features on **Rust 1.41.1**.
24
24
25
+
### Githooks
26
+
27
+
To assist devs in catching errors _before_ running CI we provide some githooks. If you do not
28
+
already have locally configured githooks you can use the ones in this repository by running, in the
29
+
root directory of the repository:
30
+
```
31
+
git config --local core.hooksPath githooks/
32
+
```
33
+
34
+
Alternatively add symlinks in your `.git/hooks` directory to any of the githooks we provide.
35
+
25
36
## Fuzzing
26
37
27
38
If you want to fuzz this library, or any library which depends on it, you will
let sig = ecdsa::Signature::from_str(&hex_str).expect("byte str decode");
737
+
let sig = ecdsa::Signature::from_str(hex_str).expect("byte str decode");
736
738
assert_eq!(&sig.to_string(), hex_str);
737
739
assert_eq!(&format!("{:?}", sig), hex_str);
738
740
@@ -759,7 +761,7 @@ mod tests {
759
761
760
762
// 71 byte signature
761
763
let hex_str = "30450221009d0bad576719d32ae76bedb34c774866673cbde3f4e12951555c9408e6ce774b02202876e7102f204f6bfee26c967c3926ce702cf97d4b010062e193f763190f6776";
762
-
let sig = ecdsa::Signature::from_str(&hex_str).expect("byte str decode");
764
+
let sig = ecdsa::Signature::from_str(hex_str).expect("byte str decode");
0 commit comments