Skip to content

Commit

Permalink
fix cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
BlaineHeffron committed Jun 20, 2024
1 parent c4d887b commit 58c4dfa
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions custom_types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,7 @@ impl CustomTypesContract {
// increment count and return new one
pub fn inc(env: Env) -> u32 {
let mut count: u32 = env.storage().persistent().get(&COUNTER).unwrap_or(0); // Panic if the value of COUNTER is not u32.
// Increment the count.
count += 1;

// Save the count.
env.storage().persistent().set(&COUNTER, &count);
count
}
Expand Down Expand Up @@ -202,12 +199,4 @@ impl CustomTypesContract {
pub fn tuple_strukt(_env: Env, tuple_strukt: TupleStruct) -> TupleStruct {
tuple_strukt
}

// pub fn timepoint(_env: Env, timepoint: TimePoint) -> TimePoint {
// timepoint
// }

// pub fn duration(_env: Env, duration: Duration) -> Duration {
// duration
// }
}
}

0 comments on commit 58c4dfa

Please sign in to comment.