From 44e2442b9c4ce36dabee5baba814daa071412b0a Mon Sep 17 00:00:00 2001 From: Alek Ratzloff Date: Mon, 24 Jan 2022 17:55:31 -0800 Subject: [PATCH] quote.0 -> quote.index() Signed-off-by: Alek Ratzloff --- src/object.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/object.rs b/src/object.rs index 7aa7bec..296d425 100644 --- a/src/object.rs +++ b/src/object.rs @@ -60,7 +60,7 @@ impl QuoteTable { } pub fn get(&self, quote: Quote) -> &(Span, Scope, Vec, Rc>) { - &self.table[quote.0] + &self.table[quote.index()] } }