rust-bitcoin-unsafe-fast/primitives/src
merge-script 95c012ee53
Merge rust-bitcoin/rust-bitcoin#4143: primitives: Inline small functions
b656d7a16c Inline small functions (Jamil Lambert, PhD)

Pull request description:

  Functions that fit the below criteria should be inline:

  > Basically, if a function jut delegates into another function and passing through arguments, it should be inline. Also when doing assignment of `u32` or similarly trivial operation. Also if it checks the validity of argument(s) and then performs something simple (like a call to `_unchecked`).

  _Originally posted by Kixunil in https://github.com/rust-bitcoin/rust-bitcoin/pull/4099#discussion_r1966156399_

  Add `#[inline]` to all functions in `primitives` that fit the criteria.

ACKs for top commit:
  tcharding:
    ACK b656d7a16c
  apoelstra:
    ACK b656d7a16c2d0cdd6d8a94fffeac842ffc0fabf4; successfully ran local tests

Tree-SHA512: 0059aa25252e634e55482b201a9414d19a01435fea801a20dc38b4b701a52f4a14565a1cfb0ff4ed7a771a25629eb192fd69cb4ee81e78f6a0ef79d56db0ef5b
2025-03-04 14:35:14 +00:00
..
locktime Inline small functions 2025-03-03 12:26:52 +00:00
script 2025-03-02 automated rustfmt nightly 2025-03-02 01:22:29 +00:00
block.rs Inline small functions 2025-03-03 12:26:52 +00:00
lib.rs Improve docs crate headings 2025-03-03 13:28:01 +11:00
merkle_tree.rs Remove hex string trait bounds from GeneralHash 2024-11-13 14:01:13 +11:00
opcodes.rs Inline small functions 2025-03-03 12:26:52 +00:00
pow.rs Inline small functions 2025-03-03 12:26:52 +00:00
sequence.rs Inline small functions 2025-03-03 12:26:52 +00:00
taproot.rs Move taproot back to bitcoin crate 2025-02-26 15:45:49 +11:00
transaction.rs Inline small functions 2025-03-03 12:26:52 +00:00
witness.rs Inline small functions 2025-03-03 12:26:52 +00:00