FuelLabs/fuel-core

Avoid cloning of vectors in `HexString`

Open

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

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

仓库指标

Star
 (57,084 star)
PR 合并指标
 (平均合并 8小时 53分钟) (30 天内合并 1 个 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.

贡献者指南