Skip to content

Commit

Permalink
sqf - cleanup s19 merge (#849)
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror authored Dec 19, 2024
1 parent f823a0c commit 6f67adb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions hls/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ impl LanguageServer for Backend {
}
}

#[allow(dead_code)]
pub struct TextDocumentItem<'a> {
uri: Url,
text: TextInformation<'a>,
Expand Down
1 change: 1 addition & 0 deletions hls/src/sqf_project/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use url::Url;

use crate::workspace::EditorWorkspaces;

#[allow(dead_code)]
pub struct CacheBundle {
pub processed: Processed,
pub source: WorkspacePath,
Expand Down
4 changes: 2 additions & 2 deletions libs/preprocessor/src/parse/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ pub fn file(path: &WorkspacePath) -> Result<Vec<Arc<Token>>, Error> {
}

/// Parse a string into tokens
///
///
/// # Errors
/// If the string is invalid
///
///
/// # Panics
/// If the string is invalid
pub fn str(source: &str, path: &WorkspacePath) -> Result<Vec<Arc<Token>>, Error> {
Expand Down
3 changes: 1 addition & 2 deletions libs/preprocessor/src/processor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ impl Processor {

processor.file_stack.push(path.clone());

let tokens =
crate::parse::file(path).map_err(|e| (processor.included_files.clone(), e))?;
let tokens = crate::parse::file(path).map_err(|e| (processor.included_files.clone(), e))?;
let mut pragma = Pragma::root();
let mut buffer = Vec::with_capacity(tokens.len());
let mut stream = tokens.into_iter().peekmore();
Expand Down

0 comments on commit 6f67adb

Please sign in to comment.