]> git.lizzy.rs Git - rust.git/blobdiff - crates/rust-analyzer/src/document.rs
Merge #9558
[rust.git] / crates / rust-analyzer / src / document.rs
index 43219e6330f3d0456e0b711b82f2d5b6c5b526c6..cf091510ffad1785f6d8a822636beaa4d8f1edae 100644 (file)
@@ -1,16 +1,16 @@
 //! In-memory document information.
 
 /// Information about a document that the Language Client
-// knows about.
-// Its lifetime is driven by the textDocument/didOpen and textDocument/didClose
-// client notifications.
+/// knows about.
+/// Its lifetime is driven by the textDocument/didOpen and textDocument/didClose
+/// client notifications.
 #[derive(Debug, Clone)]
 pub(crate) struct DocumentData {
-    pub version: Option<i64>,
+    pub(crate) version: i32,
 }
 
 impl DocumentData {
-    pub fn new(version: i64) -> Self {
-        DocumentData { version: Some(version) }
+    pub(crate) fn new(version: i32) -> Self {
+        DocumentData { version }
     }
 }