Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyboyQCD committed Oct 16, 2024
1 parent f47a6cf commit 581f14f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/string/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ impl<D: JsStringData> JsStringBuilder<D> {
/// Caller should ensure that the inner is allocated.
#[must_use]
unsafe fn current_layout(&self) -> Layout {
// SAFETY:
// Caller should ensure that the inner is allocated.
unsafe {
Layout::for_value(self.inner.as_ref())
.extend(Layout::array::<D>(self.capacity()).unwrap_unchecked())
Expand Down

0 comments on commit 581f14f

Please sign in to comment.