X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=nihav-core%2Fsrc%2Frefs.rs;h=b83aa25428b7c75df67182efa73536a646fb7d7d;hb=49db8a1187bd05535f13a5d13effb9f0bb8ac394;hp=f2b0577866174e1d5910f6062e1b4e9ef23aceaa;hpb=2422d9699cd56cbb86ac32b3e8dd026e20a89db5;p=nihav.git diff --git a/nihav-core/src/refs.rs b/nihav-core/src/refs.rs index f2b0577..b83aa25 100644 --- a/nihav-core/src/refs.rs +++ b/nihav-core/src/refs.rs @@ -85,3 +85,8 @@ impl Drop for NABufferRef { } } +impl Default for NABufferRef { + fn default() -> Self { + Self::new(T::default()) + } +}