Skip to content

Commit 5e10f14

Browse files
committed
clippy...
1 parent 4359f43 commit 5e10f14

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
clippy::derive_hash_xor_eq,
2525
clippy::too_many_arguments,
2626
clippy::type_complexity,
27+
clippy::single_element_loop,
2728
// We are not implementing queries here so it's fine
2829
rustc::potential_query_instability
2930
)]

src/shims/unix/android/dlsym.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ impl Dlsym {
1313
// Returns an error for unsupported symbols, and None if this symbol
1414
// should become a NULL pointer (pretend it does not exist).
1515
pub fn from_str<'tcx>(name: &str) -> InterpResult<'tcx, Option<Dlsym>> {
16-
Ok(match &*name {
16+
Ok(match name {
1717
"signal" => Some(Dlsym::signal),
1818
"android_set_abort_message" => None,
1919
_ => throw_unsup_format!("unsupported Android dlsym: {}", name),

src/shims/unix/android/foreign_items.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
1515
_dest: &PlaceTy<'tcx, Provenance>,
1616
) -> InterpResult<'tcx, EmulateByNameResult<'mir, 'tcx>> {
1717
let _this = self.eval_context_mut();
18+
#[allow(clippy::match_single_binding)]
1819
match link_name.as_str() {
1920
_ => return Ok(EmulateByNameResult::NotSupported),
2021
}
21-
//Ok(EmulateByNameResult::NeedsJumping)
22+
23+
#[allow(unreachable_code)]
24+
Ok(EmulateByNameResult::NeedsJumping)
2225
}
2326
}

0 commit comments

Comments
 (0)