From 18aaf93da08e7156017104a00b9afac8195efbc1 Mon Sep 17 00:00:00 2001 From: Nikita Revenco <154856872+NikitaRevenco@users.noreply.github.com> Date: Mon, 3 Feb 2025 21:10:07 +0000 Subject: [PATCH] chore: remove Clone derive from Syntax --- helix-core/src/syntax.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/helix-core/src/syntax.rs b/helix-core/src/syntax.rs index 8f6184330..321f3ab86 100644 --- a/helix-core/src/syntax.rs +++ b/helix-core/src/syntax.rs @@ -1095,7 +1095,7 @@ thread_local! { }) } -#[derive(Debug, Clone)] +#[derive(Debug)] pub struct Syntax { pub layers: HopSlotMap, root: LayerId, @@ -1562,7 +1562,7 @@ impl Syntax { bitflags! { /// Flags that track the status of a layer /// in the `Sytaxn::update` function - #[derive(Debug, Clone)] + #[derive(Debug)] struct LayerUpdateFlags : u32{ const MODIFIED = 0b001; const MOVED = 0b010; @@ -1570,7 +1570,7 @@ bitflags! { } } -#[derive(Debug, Clone)] +#[derive(Debug)] pub struct LanguageLayer { // mode // grammar