Skip to content

Commit

Permalink
Adjust inlining.
Browse files Browse the repository at this point in the history
  • Loading branch information
futursolo committed Aug 16, 2022
1 parent 0a399ba commit 6ae5a65
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/yew/src/platform/fmt/buffer.rs
Expand Up @@ -85,6 +85,7 @@ pub(crate) struct BufWriter {
}

impl Write for BufWriter {
#[inline]
fn write_str(&mut self, s: &str) -> fmt::Result {
// SAFETY:
//
Expand All @@ -98,6 +99,7 @@ impl Write for BufWriter {
inner.write_str(s)
}

#[inline]
fn write_char(&mut self, c: char) -> fmt::Result {
// SAFETY:
//
Expand All @@ -111,6 +113,7 @@ impl Write for BufWriter {
inner.write_char(c)
}

#[inline]
fn write_fmt(&mut self, args: fmt::Arguments<'_>) -> fmt::Result {
// SAFETY:
//
Expand Down

0 comments on commit 6ae5a65

Please sign in to comment.