File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
hermes/bin/src/runtime_extensions/hermes/doc_sync Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff 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) ]
195197fn inner_close (
196198 _ctx : & mut HermesRuntimeContext ,
197199 _res : Resource < SyncChannel > ,
You can’t perform that action at this time.
0 commit comments