From 3f8f8c3a0dfab76e58b396bdb3a064f3033409a1 Mon Sep 17 00:00:00 2001 From: bebecue <109153518+bebecue@users.noreply.github.com> Date: Fri, 4 Oct 2024 12:03:43 +0800 Subject: [PATCH] receive &self in NlaBuffer::inner() Signed-off-by: bebecue <109153518+bebecue@users.noreply.github.com> --- src/nla.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nla.rs b/src/nla.rs index 96f7d79..b4c1529 100644 --- a/src/nla.rs +++ b/src/nla.rs @@ -91,7 +91,7 @@ impl> NlaBuffer { } /// Return a reference to the underlying buffer - pub fn inner(&mut self) -> &T { + pub fn inner(&self) -> &T { &self.buffer }