Skip to content

Commit f2156cb

Browse files
committed
chore: remove Clone derive from Syntax
1 parent e61bbb8 commit f2156cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

helix-core/src/syntax.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ thread_local! {
10951095
})
10961096
}
10971097

1098-
#[derive(Debug, Clone)]
1098+
#[derive(Debug)]
10991099
pub struct Syntax {
11001100
pub layers: HopSlotMap<LayerId, LanguageLayer>,
11011101
root: LayerId,
@@ -1562,15 +1562,15 @@ impl Syntax {
15621562
bitflags! {
15631563
/// Flags that track the status of a layer
15641564
/// in the `Sytaxn::update` function
1565-
#[derive(Debug, Clone)]
1565+
#[derive(Debug)]
15661566
struct LayerUpdateFlags : u32{
15671567
const MODIFIED = 0b001;
15681568
const MOVED = 0b010;
15691569
const TOUCHED = 0b100;
15701570
}
15711571
}
15721572

1573-
#[derive(Debug, Clone)]
1573+
#[derive(Debug)]
15741574
pub struct LanguageLayer {
15751575
// mode
15761576
// grammar

0 commit comments

Comments
 (0)