Skip to content

Commit

Permalink
build(nightly): please revert this, rustc...
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLostLambda committed Jul 7, 2024
1 parent 6cbe8bd commit e0e1862
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/smithereens/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![type_length_limit = "18554191"]

use std::{
cmp::Ordering,
convert::identity,
Expand Down Expand Up @@ -115,6 +117,7 @@ impl NodeMapping {
// `bond_refs()` to begin with!
#[allow(clippy::trivially_copy_pass_by_ref)]
fn index(&self, id: &ResidueId) -> NodeId {
// PERF: Linear search might be faster here for small lists!
// SAFETY: Panics if the `id` isn't found
self.0.binary_search(id).unwrap()
}
Expand Down

0 comments on commit e0e1862

Please sign in to comment.