fix(str): correct clippy reason (#27013)

Follow-on after #26435. Correct the wording in clippy warning suppression warning. Reason didn't completely match the code which converts both lead and trail surrogate values to `u16`.
This commit is contained in:
overlookmotel committed 2026-09-27 08:10:03 +00:00
1 parent 21dc0691a4
commit c55b35d0a8
1 file changed
+1 -1
+1 -1
View File
@@ -83,7 +83,7 @@ impl<'a> JSStrBuilder<'a> {
/// Append one JavaScript code point, pairing surrogates at the boundary.
#[inline]
#[expect(clippy::cast_possible_truncation, reason = "leading surrogates fit in u16")]
#[expect(clippy::cast_possible_truncation, reason = "lone surrogates fit in `u16`")]
pub fn push_js_char(&mut self, value: JSChar) {
let point = value.to_u32();
if let Some(lead) = self.pending_lead_surrogate