Skip to content

Commit

Permalink
Fix a couple missing clones in wasm-gated variants
Browse files Browse the repository at this point in the history
  • Loading branch information
graydon committed Mar 8, 2023
1 parent f342a4e commit 6f61dd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions soroban-sdk/src/symbol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ impl TryFrom<&Symbol> for ScVal {
if let Ok(ss) = SymbolSmall::try_from(v.val) {
ScVal::try_from(ss)
} else {
let e: Env = v.env.try_into()?;
let e: Env = v.env.clone().try_into()?;
ScVal::try_from_val(&e, &v.to_raw())
}
}
Expand Down Expand Up @@ -254,7 +254,7 @@ impl ToString for Symbol {
if let Ok(s) = SymbolSmall::try_from(self.val) {
s.to_string()
} else {
let e: Env = self.env.try_into().unwrap_optimized();
let e: Env = self.env.clone().try_into().unwrap_optimized();
SymbolStr::try_from_val(&e, &self.val)
.unwrap_optimized()
.to_string()
Expand Down

0 comments on commit 6f61dd5

Please sign in to comment.