Skip to content

Commit 747195b

Browse files
committed
Replace single char strings with char literals
1 parent 1e0794a commit 747195b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cpp2rust/converter/models/converter_refcount.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ std::string ConverterRefCount::BuildFnAdapter(
196196
closure += "{ ";
197197

198198
// Build adapter body: src_fn(convert(a0), convert(a1), ...)
199-
closure += Mapper::MapFunctionName(src_fn) + "(";
199+
closure += Mapper::MapFunctionName(src_fn) + '(';
200200
for (unsigned i = 0; i < src_proto->getNumParams(); ++i) {
201201
auto src_pty = src_proto->getParamType(i);
202202
auto tgt_pty = target_proto->getParamType(i);

cpp2rust/converter/translation_rule.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ std::vector<Rule> Load(const std::filesystem::path &path, Model model) {
495495
for (auto &[name, rule] : rules) {
496496
assert(!rule.src.empty() && "Rule loaded from IR but has no src");
497497
if (auto *expr_tgt = std::get_if<ExprTgt>(&rule.tgt)) {
498-
expr_tgt->validate(path.string() + ":" + name);
498+
expr_tgt->validate(path.string() + ':' + name);
499499
}
500500
result.push_back(std::move(rule));
501501
}

0 commit comments

Comments
 (0)