Skip to content

Commit

Permalink
chore: release 0.9.0 with misc fixes (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
coder3101 authored Jan 4, 2025
1 parent e33e1e6 commit 8ffe219
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/formatter/clang.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ struct Replacement<'a> {
text: Cow<'a, str>,
}

impl<'a> Replacement<'a> {
impl Replacement<'_> {
fn offset_to_position(offset: usize, content: &str) -> Option<Position> {
if offset > content.len() {
return None;
Expand Down
1 change: 0 additions & 1 deletion src/parser/hover.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use async_lsp::lsp_types::MarkedString;
use tree_sitter::Node;

use crate::nodekind::NodeKind;
Expand Down
2 changes: 1 addition & 1 deletion src/parser/rename.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ impl ParsedTree {
.filter(|n| {
let ntext = n.utf8_text(content.as_ref()).expect("utf-8 parse error");
let sc = format!("{old_identifier}.");
return ntext == old_identifier || ntext.starts_with(&sc);
ntext == old_identifier || ntext.starts_with(&sc)
})
.map(|n| {
let text = n.utf8_text(content.as_ref()).expect("utf-8 parse error");
Expand Down
2 changes: 1 addition & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pub fn split_identifier_package(s: &str) -> (&str, &str) {
});

let (package, identifier) = s.split_at(i);
return (package, identifier.trim_matches('.'));
(package, identifier.trim_matches('.'))
}

#[cfg(test)]
Expand Down

0 comments on commit 8ffe219

Please sign in to comment.