chore: remove Clone derive from Syntax

This commit is contained in:
Nikita Revenco 2025-02-03 21:10:07 +00:00 committed by Nik Revenco
parent 4c5ceb5bed
commit 18aaf93da0

View file

@ -1095,7 +1095,7 @@ thread_local! {
}) })
} }
#[derive(Debug, Clone)] #[derive(Debug)]
pub struct Syntax { pub struct Syntax {
pub layers: HopSlotMap<LayerId, LanguageLayer>, pub layers: HopSlotMap<LayerId, LanguageLayer>,
root: LayerId, root: LayerId,
@ -1562,7 +1562,7 @@ impl Syntax {
bitflags! { bitflags! {
/// Flags that track the status of a layer /// Flags that track the status of a layer
/// in the `Sytaxn::update` function /// in the `Sytaxn::update` function
#[derive(Debug, Clone)] #[derive(Debug)]
struct LayerUpdateFlags : u32{ struct LayerUpdateFlags : u32{
const MODIFIED = 0b001; const MODIFIED = 0b001;
const MOVED = 0b010; const MOVED = 0b010;
@ -1570,7 +1570,7 @@ bitflags! {
} }
} }
#[derive(Debug, Clone)] #[derive(Debug)]
pub struct LanguageLayer { pub struct LanguageLayer {
// mode // mode
// grammar // grammar