Skip to content

Commit 38b5214

Browse files
committed
Fix: move version in structs before source, to make debug easier.
1 parent 448150e commit 38b5214

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/processing.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,11 @@ pub struct CodeMirror {
136136
/// A diff of the `CodeMirror` struct.
137137
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq, TS)]
138138
pub struct CodeMirrorDiff {
139+
/// The version number from which this diff was produced.
140+
pub version: f64,
139141
/// A diff of the document being edited.
140142
pub doc: Vec<StringDiff>,
141143
pub doc_blocks: Vec<CodeMirrorDocBlockTransaction>,
142-
/// The version number from which this diff was produced.
143-
pub version: f64,
144144
}
145145

146146
/// A transaction produced by the diff of the `CodeMirror` struct.

0 commit comments

Comments
 (0)