Skip to content

Commit a78d76b

Browse files
committed
Change [cold] to [inline(never)]
1 parent 303edc7 commit a78d76b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/reader.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ impl<'a, R: Read> Reader<'a, R> {
134134
///
135135
/// # Params
136136
/// `amt` - Amount of bits that will be read. Must be <= [`MAX_BITS_AMT`].
137-
#[cold]
137+
#[inline(never)]
138138
pub fn read_bits(&mut self, amt: usize) -> Result<Option<BitVec<u8, Msb0>>, DekuError> {
139139
#[cfg(feature = "logging")]
140140
log::trace!("read_bits: requesting {amt} bits");

src/writer.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ impl<W: Write> Writer<W> {
4343
///
4444
/// Any leftover bits will be written before `bits`, and non-written bits will
4545
/// be stored in `self.leftover`.
46-
#[inline]
46+
#[inline(never)]
4747
pub fn write_bits(&mut self, bits: &BitSlice<u8, Msb0>) -> Result<(), DekuError> {
4848
#[cfg(feature = "logging")]
4949
log::trace!("attempting {} bits", bits.len());

0 commit comments

Comments
 (0)