Skip to content

Commit 4bac4fa

Browse files
committed
nit
Signed-off-by: Max Baumann <[email protected]>
1 parent 68ff309 commit 4bac4fa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clippy_lints/src/strings.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -504,9 +504,8 @@ fn implements_deref_str<'t>(cx: &LateContext<'t>, ty: Ty<'t>) -> bool {
504504
if let Some(deref_trait_id) = cx.tcx.get_diagnostic_item(sym::Deref);
505505
if implements_trait(cx, ty, deref_trait_id, &[]);
506506
if let Some(target) = get_associated_type(cx, ty, deref_trait_id, "Target");
507-
if target.is_str();
508507
then {
509-
true
508+
target.is_str()
510509
}
511510
else {
512511
false

0 commit comments

Comments
 (0)