capnp:Text::Reader: use implicit conversion from string (#21980)

old-commit-hash: c6a34dd9f7ea1798a54883070eb548c17addbb12
This commit is contained in:
Dean Lee
2021-08-20 04:49:08 +08:00
committed by GitHub
parent cf7c627452
commit f65c7e7418
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -30,8 +30,7 @@ static kj::Array<capnp::word> build_boot_log() {
}
}
std::string launchLog = util::read_file("/tmp/launch_log");
boot.setLaunchLog(capnp::Text::Reader(launchLog.data(), launchLog.size()));
boot.setLaunchLog(util::read_file("/tmp/launch_log"));
return capnp::messageToFlatArray(msg);
}
+1 -1
View File
@@ -60,7 +60,7 @@ kj::Array<capnp::word> logger_build_init_data() {
init.setDeviceType(cereal::InitData::DeviceType::PC);
}
init.setVersion(capnp::Text::Reader(COMMA_VERSION));
init.setVersion(COMMA_VERSION);
std::ifstream cmdline_stream("/proc/cmdline");
std::vector<std::string> kernel_args;