From: Kostya Shishkov Date: Mon, 29 Apr 2019 11:03:36 +0000 (+0200) Subject: core: implement Default for NABufferRef X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=49db8a1187bd05535f13a5d13effb9f0bb8ac394;p=nihav.git core: implement Default for NABufferRef --- 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()) + } +}