Fix miscellaneous Clippy lints

This commit is contained in:
Aramis Razzaghipour
2021-10-03 23:45:08 +11:00
parent 55c0b86cde
commit eff195852d
21 changed files with 40 additions and 51 deletions

View File

@@ -542,11 +542,7 @@ fn fn_arg_type(
return None;
}
if let Ok(rendered) = ty.display_source_code(ctx.db(), target_module.into()) {
Some(rendered)
} else {
None
}
ty.display_source_code(ctx.db(), target_module.into()).ok()
}
/// Returns the position inside the current mod or file