summaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2018-01-10 13:05:51 +0100
committerJustus Winter <justus@sequoia-pgp.org>2018-01-10 14:35:44 +0100
commitee4107c5457f25b0b3b0e0022f5226d9d13b6545 (patch)
tree532cfef5fc7e7de573f8123fa37fad4a48fca599 /tool
parent93479d0400a6ed01638f49fbee9e00d7e6dc7ce0 (diff)
store: Do not require mutable references to the store.
- The only mutable reference that we need is to the reactor core, which we store in a RefCell anyway. Requiring mutable references makes using the store very awkward, because the borrow checker works on lexical scopes, not dynamic scopes.
Diffstat (limited to 'tool')
-rw-r--r--tool/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/src/main.rs b/tool/src/main.rs
index 33c611f0..0d06266c 100644
--- a/tool/src/main.rs
+++ b/tool/src/main.rs
@@ -259,7 +259,7 @@ fn real_main() -> Result<()> {
}
},
("store", Some(m)) => {
- let mut store = Store::open(&ctx, m.value_of("name").unwrap())
+ let store = Store::open(&ctx, m.value_of("name").unwrap())
.expect("Failed to open store");
match m.subcommand() {