about summary refs log tree commit diff
path: root/third_party/nix/src/libutil/lru-cache.hh
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/libutil/lru-cache.hh')
-rw-r--r--third_party/nix/src/libutil/lru-cache.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/nix/src/libutil/lru-cache.hh b/third_party/nix/src/libutil/lru-cache.hh
index f6fcdaf82e..1832c54244 100644
--- a/third_party/nix/src/libutil/lru-cache.hh
+++ b/third_party/nix/src/libutil/lru-cache.hh
@@ -27,7 +27,7 @@ class LRUCache {
   LRU lru;
 
  public:
-  LRUCache(size_t capacity) : capacity(capacity) {}
+  explicit LRUCache(size_t capacity) : capacity(capacity) {}
 
   /* Insert or upsert an item in the cache. */
   void upsert(const Key& key, const Value& value) {