Skip to content

Commit 4f75078

Browse files
committed
Add inlines per feedback
1 parent cc0947a commit 4f75078

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/control/tag.rs

+2
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,13 @@ pub(crate) trait TagSliceExt {
6969
fn fill_tag(&mut self, tag: Tag);
7070

7171
/// Clears out the control.
72+
#[inline]
7273
fn fill_empty(&mut self) {
7374
self.fill_tag(Tag::EMPTY)
7475
}
7576
}
7677
impl TagSliceExt for [Tag] {
78+
#[inline]
7779
fn fill_tag(&mut self, tag: Tag) {
7880
// SAFETY: We have access to the entire slice, so, we can write to the entire slice.
7981
unsafe { self.as_mut_ptr().write_bytes(tag.0, self.len()) }

0 commit comments

Comments
 (0)