mirror of
https://github.com/SpaceManiac/SpacemanDMM.git
synced 2025-12-23 05:36:47 +00:00
Allow dead code in langserver document handling generally
This commit is contained in:
parent
c6789f80eb
commit
e005898db6
1 changed files with 1 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
//! Utilities for managing the text document synchronization facilities of the
|
||||
//! language server protocol.
|
||||
#![allow(dead_code)]
|
||||
|
||||
use std::io::{self, Read, BufRead};
|
||||
use std::borrow::Cow;
|
||||
|
|
@ -86,7 +87,6 @@ impl DocumentStore {
|
|||
}
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn read(&self, path: &Path) -> io::Result<Box<io::Read>> {
|
||||
match self.map.get(path) {
|
||||
Some(document) => Ok(Box::new(Cursor::new(document.text.clone())) as Box<io::Read>),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue