mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
Remove unnecessary cloning
This commit is contained in:
parent
c9c4053eed
commit
5125063a21
7 changed files with 54 additions and 50 deletions
|
@ -219,7 +219,7 @@ impl MemoryMap {
|
|||
/// A concrete constant value
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub enum ConstScalar {
|
||||
Bytes(Vec<u8>, MemoryMap),
|
||||
Bytes(Box<[u8]>, MemoryMap),
|
||||
// FIXME: this is a hack to get around chalk not being able to represent unevaluatable
|
||||
// constants
|
||||
UnevaluatedConst(GeneralConstId, Substitution),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue