Skip to content

Commit

Permalink
fix wasm bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
matzemathics committed Sep 18, 2024
1 parent 7327c5d commit d5dbd4b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions nemo-language-server/src/language_server/lsp_component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ where

scope.map(|scope| LSPIdentifier {
scope,
identifier: (self.context(), self.span().0.fragment().to_string()),
identifier: (self.context(), self.span().fragment().to_string()),
})
}

Expand Down Expand Up @@ -155,7 +155,7 @@ where

kind.map(|kind| LSPSymbolInfo {
kind,
name: format!("{}", self.span().0.fragment()),
name: format!("{}", self.span().fragment()),
})
}

Expand Down
1 change: 0 additions & 1 deletion nemo/src/parser/ast/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ mod test {

// TODO: This test cases causes a warning in miri
#[test]
#[cfg_attr(miri, ignore)]
fn parser_recover() {
let program = "%! Top-level comment\n\
% Declarations:\n\
Expand Down
1 change: 1 addition & 0 deletions nemo/src/parser/span.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ pub struct Span<'a> {

// SAFETY: Conceptionally, a span is just a slice inside a slice.
unsafe impl Sync for Span<'_> {}
unsafe impl Send for Span<'_> {}

impl<'a> Span<'a> {
/// Create a span for a particular input with default offset and line values and empty extra data.
Expand Down

0 comments on commit d5dbd4b

Please sign in to comment.