summaryrefslogtreecommitdiff
path: root/src/generic
diff options
context:
space:
mode:
Diffstat (limited to 'src/generic')
-rw-r--r--src/generic/db.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/generic/db.hpp b/src/generic/db.hpp
index 707d8ae..b0dcf0c 100644
--- a/src/generic/db.hpp
+++ b/src/generic/db.hpp
@@ -115,7 +115,7 @@ public:
V get(const K& k)
{
Option<Borrowed<V>> vp = impl.search(k);
- if OPTION_IS_SOME(v, vp)
+ if OPTION_IS_SOME_NOLOOP(v, vp)
{
return *v;
}
@@ -162,7 +162,7 @@ public:
Option<Borrowed<V>> get(const K& k)
{
Option<Borrowed<U>> up = impl.search(k);
- if OPTION_IS_SOME(u, up)
+ if OPTION_IS_SOME_NOLOOP(u, up)
{
return Some(borrow(*u->get()));
}