Skip to content

Commit b56a06a

Browse files
Refactor storage access (#87)
Co-authored-by: Martin Jonas <martinjonas@gmail.com>
1 parent 611cd27 commit b56a06a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/builder/protocol.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ impl Protocol {
3939
}
4040

4141
pub fn load(name: &str, storage: Rc<Storage>) -> Result<Option<Self>, ProtocolBuilderError> {
42-
Ok(storage.get(&name)?)
42+
Ok(storage.get(&name, None)?)
4343
}
4444

4545
pub fn save(&self, storage: Rc<Storage>) -> Result<(), ProtocolBuilderError> {

0 commit comments

Comments
 (0)