We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd990ac commit 7be2374Copy full SHA for 7be2374
1 file changed
cpp2rust/converter/converter.cpp
@@ -1779,7 +1779,8 @@ void Converter::ConvertIntegralToBooleanCast(clang::ImplicitCastExpr *expr) {
1779
}
1780
1781
1782
-bool Converter::IsCastRedundantInRust(clang::Expr *expr, clang::QualType target_type) {
+bool Converter::IsCastRedundantInRust(clang::Expr *expr,
1783
+ clang::QualType target_type) {
1784
auto target = GetUnsafeTypeAsString(target_type);
1785
if (const auto *rule = Mapper::GetExprRule(expr)) {
1786
return rule->return_type.type == target;
0 commit comments