Skip to content

Commit

Permalink
Clippy cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielesvelto committed Jul 18, 2023
1 parent dafbf62 commit f4db5c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/linux/android.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ fn parse_loaded_elf_program_headers(
pub fn late_process_mappings(pid: Pid, mappings: &mut [MappingInfo]) -> Result<()> {
// Only consider exec mappings that indicate a file path was mapped, and
// where the ELF header indicates a mapped shared library.
for mut map in mappings
for map in mappings
.iter_mut()
.filter(|m| m.is_executable() && m.name_is_path())
{
Expand Down
2 changes: 1 addition & 1 deletion src/linux/crash_context/x86.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl CrashContext {

{
let fs = &self.inner.float_state;
let mut out = &mut out.float_save;
let out = &mut out.float_save;
out.control_word = fs.cw;
out.status_word = fs.sw;
out.tag_word = fs.tag;
Expand Down
2 changes: 1 addition & 1 deletion src/linux/dumper_cpu_info/x86_mips.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pub fn write_cpu_information(sys_info: &mut MDRawSystemInfo) -> Result<()> {
};

let mut is_first_entry = true;
for mut entry in cpu_info_table.iter_mut() {
for entry in cpu_info_table.iter_mut() {
if !is_first_entry && entry.found {
// except for the 'processor' field, ignore repeated values.
continue;
Expand Down

0 comments on commit f4db5c9

Please sign in to comment.