mirror of
https://github.com/aphrody-labs/oxc.git
synced 2026-10-15 06:39:17 +00:00
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:
1 parent
21dc0691a4
commit
c55b35d0a8
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user