don't use .into() to convert types to identical types (clippy::useless_conversion)

Example:
let _x: String = String::from("hello world").into();
This commit is contained in:
Matthias Krüger
2021-08-03 07:24:31 +02:00
parent e91405b9d5
commit 02b7754f9e
11 changed files with 21 additions and 22 deletions

View File

@@ -211,7 +211,7 @@ fn find_branch_value_info<'tcx>(
return None;
};
let branch_value_scalar = branch_value.literal.try_to_scalar()?;
Some((branch_value_scalar.into(), branch_value_ty, *to_switch_on))
Some((branch_value_scalar, branch_value_ty, *to_switch_on))
}
_ => None,
}