Skip to content

Commit

Permalink
remove superslice dep
Browse files Browse the repository at this point in the history
  • Loading branch information
dragazo committed Nov 3, 2023
1 parent e447cdb commit f808104
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ educe = { version = "0.4.23", default-features = false, features = ["Debug", "Cl
libm = { version = "0.2.8", default-features = false }
monostate = { version = "0.1.9", default-features = false }
replace_with = { version = "0.1.7", default-features = false }
superslice = { version = "1.0", default-features = false }
unicase = { version = "2.7.0", default-features = false }
time = { version = "0.3.30", default-features = false }
typed-arena = { version = "2.0.2", default-features = false }
Expand Down
3 changes: 1 addition & 2 deletions src/bytecode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ use std::io::{self, Write};
#[cfg(feature = "serde")]
use serde::{Serialize, Deserialize};

use superslice::Ext;
use monostate::MustBeU128;
use num_traits::FromPrimitive;
use bin_pool::BinPool;
Expand Down Expand Up @@ -1213,7 +1212,7 @@ impl Locations {
/// hence returning the most local location that was provided in the ast.
pub fn lookup(&self, bytecode_pos: usize) -> Option<String> {
let mut start = {
let p = self.locs.lower_bound_by_key(&(bytecode_pos + 1), |x| x.0);
let p = self.locs.partition_point(|x| x.0 <= bytecode_pos);
debug_assert!(p <= self.locs.len());
self.locs.get(p)?.1
};
Expand Down

0 comments on commit f808104

Please sign in to comment.