FuelLabs/fuel-core

Avoid cloning of vectors in `HexString`

開放

#2,657 建立於 2025年2月1日

 (2 則留言) (0 個反應) (0 位負責人)Rust (2,861 個分叉)batch import
good first issue

倉庫指標

星標
 (57,084 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

The GraphQL server coverts bytes into the hex string to return it to the user. During this convert process, we take vector by value.

We have many cases where we clone vectors instead of passing it as a reference.

This issue is created to replace Vec<u8> with Cow<[u8]> or Cow<Vec<u8>> and allow usage of references.

貢獻者指南