FuelLabs/fuel-core

Avoid cloning of vectors in `HexString`

Open

#2,657 创建于 2025年2月1日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)Rust (57,084 star) (2,861 fork)batch import
good first issue

描述

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.

贡献者指南