Skip to content

Commit 7ba1e56

Browse files
committed
fix(CI): ignore some lints
1 parent 0735c96 commit 7ba1e56

File tree

1 file changed

+2
-0
lines changed
  • hermes/bin/src/runtime_extensions/hermes/doc_sync

1 file changed

+2
-0
lines changed

hermes/bin/src/runtime_extensions/hermes/doc_sync/host.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ impl HostSyncChannel for HermesRuntimeContext {
5252
// acceptable but unlikely in practice. We use the first 4 bytes of
5353
// the cryptographically secure Blake2b hash as a fast, 32-bit ID
5454
// to minimize lock contention when accessing state via DOC_SYNC_STATE.
55+
#[allow(clippy::indexing_slicing)]
5556
let prefix_bytes: [u8; 4] = hash.as_bytes()[..4].try_into().map_err(|err| {
5657
wasmtime::Error::msg(format!("error trimming channel name hash: {err}"))
5758
})?;
@@ -192,6 +193,7 @@ impl HostSyncChannel for HermesRuntimeContext {
192193

193194
/// This function is required cause reusage of `self.close`
194195
/// inside drop causes invalid behavior during codegen.
196+
#[allow(clippy::unnecessary_wraps)]
195197
fn inner_close(
196198
_ctx: &mut HermesRuntimeContext,
197199
_res: Resource<SyncChannel>,

0 commit comments

Comments
 (0)