diff --git a/soroban-env-host/src/storage.rs b/soroban-env-host/src/storage.rs index 6909be58f..c5c40dfd6 100644 --- a/soroban-env-host/src/storage.rs +++ b/soroban-env-host/src/storage.rs @@ -233,7 +233,7 @@ impl Storage { self.prepare_read_only_access(key, budget)?; match self.map.get::>(key, budget)? { None | Some(None) => Err((ScErrorType::Storage, ScErrorCode::MissingValue).into()), - Some(Some((val, expiration))) => Ok((Rc::clone(val), expiration.clone())), + Some(Some((val, expiration))) => Ok((Rc::clone(val), *expiration)), } }