Skip to content

Commit

Permalink
refactor: Impl Clone on result Value (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
VladasZ committed Jan 25, 2024
1 parent f59dd3e commit 81f28db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions workspaces/src/result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

use std::fmt;

use base64::{engine::general_purpose, Engine as _};

use near_account_id::AccountId;
use near_gas::NearGas;
use near_primitives::borsh;
Expand All @@ -14,8 +16,6 @@ use near_primitives::views::{
use crate::error::ErrorKind;
use crate::types::{CryptoHash, Gas, NearToken};

use base64::{engine::general_purpose, Engine as _};

pub type Result<T, E = crate::error::Error> = core::result::Result<T, E>;

/// Execution related info as a result of performing a successful transaction
Expand Down Expand Up @@ -483,7 +483,7 @@ pub enum ValueOrReceiptId {
/// Value type returned from an [`ExecutionOutcome`] or receipt result. This value
/// can be converted into the underlying Rust datatype, or directly grab the raw
/// bytes associated to the value.
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct Value {
repr: String,
}
Expand Down

0 comments on commit 81f28db

Please sign in to comment.