diff --git a/cubedbt/src/lib.rs b/cubedbt/src/lib.rs index 0cf9d13..29346d4 100644 --- a/cubedbt/src/lib.rs +++ b/cubedbt/src/lib.rs @@ -248,6 +248,12 @@ impl CodeCache { } } +impl Default for CodeCache { + fn default() -> Self { + Self::new() + } +} + /// Build a cache record header that preserves the original's kind/title and /// behavior descriptors, but marks it a `Variant` (a mimicked implementation). fn cache_header_for(original: &CodeCell, body: &[u8]) -> (CubeHeader, Vec) {