Skip to content

Commit

Permalink
Add .unwrap() to Rust quickstart
Browse files Browse the repository at this point in the history
  • Loading branch information
RReverser committed Dec 7, 2023
1 parent bc46164 commit e9724fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/spacetimedb-quickstart/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub struct Person {

#[spacetimedb(reducer)]
pub fn add(name: String, age: u8) {
Person::insert(Person { id: 0, name, age });
Person::insert(Person { id: 0, name, age }).unwrap();
}

#[spacetimedb(reducer)]
Expand Down

0 comments on commit e9724fc

Please sign in to comment.