Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
JustusAdam committed Jul 28, 2024
1 parent 56ab458 commit 4f7e299
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 1 addition & 3 deletions crates/flowistry_pdg_construction/src/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ use rustc_serialize::{
opaque::{FileEncoder, MemDecoder},
Decodable, Decoder, Encodable, Encoder,
};
use rustc_span::{
source_map::StableSourceFileId, BytePos, ExternalSource, SpanData, SyntaxContext, DUMMY_SP,
};
use rustc_span::{source_map::StableSourceFileId, BytePos, SpanData, SyntaxContext, DUMMY_SP};
use rustc_type_ir::{TyDecoder, TyEncoder};

macro_rules! encoder_methods {
Expand Down
6 changes: 1 addition & 5 deletions crates/paralegal-flow/src/ann/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,7 @@ impl<'tcx> MarkerCtx<'tcx> {
self.db()
.annotations
.iter()
.filter_map(|(k, v)| {
let slice = v.as_slice();
// SAFETY: pinned
Some((*k, slice))
})
.map(|(k, v)| (*k, v.as_slice()))
.collect()
}

Expand Down

0 comments on commit 4f7e299

Please sign in to comment.