From 816ea5b81df6f53de4c4723ad9ab9bf1734fabf7 Mon Sep 17 00:00:00 2001 From: Kile Kasmir Asmussen Date: Fri, 13 May 2022 23:29:44 +0200 Subject: [PATCH] Made LineCol Copy --- peg-runtime/str.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peg-runtime/str.rs b/peg-runtime/str.rs index f78cf3e..7b07097 100644 --- a/peg-runtime/str.rs +++ b/peg-runtime/str.rs @@ -4,7 +4,7 @@ use super::{Parse, ParseElem, ParseLiteral, ParseSlice, RuleResult}; use std::fmt::Display; /// Line and column within a string -#[derive(PartialEq, Eq, Debug, Clone)] +#[derive(PartialEq, Eq, Debug, Clone, Copy)] pub struct LineCol { /// Line (1-indexed) pub line: usize,