Skip to content

Commit

Permalink
remove unused unstable feature 'int_roundings' (#41)
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Frank <[email protected]>
  • Loading branch information
ThoFrank and ThoFrank authored Sep 27, 2023
1 parent e7ed51a commit ad5525b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
//!
//! The text documents [position-encoding](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#positionEncodingKind) only supports `UTF-16`
#![feature(int_roundings)]
mod text_document;
mod text_documents;

Expand Down
2 changes: 1 addition & 1 deletion src/text_document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ impl FullTextDocument {

let (mut low, mut high) = (0, line_count);
while low < high {
let mid = (low + high).div_floor(2);
let mid = (low + high) / 2;
if offset
> *self
.line_offsets
Expand Down

0 comments on commit ad5525b

Please sign in to comment.