Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
faculerena committed Nov 30, 2023
1 parent fe54ae5 commit 1e17ef8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use soroban_sdk::{contract, contractimpl, contracttype};
#[contract]
pub struct CoreMemForget;


#[contracttype]
#[derive(Eq, PartialEq)]
pub struct WithoutCopy {
Expand All @@ -20,23 +19,17 @@ impl CoreMemForget {
}
}



#[cfg(test)]
mod tests {
use crate::*;

#[test]
fn test_forget_something() {
// Given
let test_value: WithoutCopy = WithoutCopy {
a: 80,
b: 60,
};
let test_value: WithoutCopy = WithoutCopy { a: 80, b: 60 };

let result = CoreMemForget::forget_something(test_value);

assert_eq!(result, 0);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use soroban_sdk::{contract, contractimpl, contracttype};
#[contract]
pub struct CoreMemForget;


#[contracttype]
#[derive(Eq, PartialEq)]
pub struct WithoutCopy {
Expand All @@ -20,23 +19,17 @@ impl CoreMemForget {
}
}



#[cfg(test)]
mod tests {
use crate::*;

#[test]
fn test_forget_something() {
// Given
let test_value: WithoutCopy = WithoutCopy {
a: 80,
b: 60,
};
let test_value: WithoutCopy = WithoutCopy { a: 80, b: 60 };

let result = CoreMemForget::forget_something(test_value);

assert_eq!(result, 0);
}

}

0 comments on commit 1e17ef8

Please sign in to comment.