refactor(3p/nix/libutil): Replace chomp() with absl::strings
This commit is contained in:
parent
10481d2586
commit
06d7b4aebd
15 changed files with 40 additions and 26 deletions
3
third_party/nix/src/libstore/remote-store.cc
vendored
3
third_party/nix/src/libstore/remote-store.cc
vendored
|
|
@ -3,6 +3,7 @@
|
|||
#include <cerrno>
|
||||
#include <cstring>
|
||||
|
||||
#include <absl/strings/ascii.h>
|
||||
#include <fcntl.h>
|
||||
#include <glog/logging.h>
|
||||
#include <sys/socket.h>
|
||||
|
|
@ -715,7 +716,7 @@ std::exception_ptr RemoteStore::Connection::processStderr(Sink* sink,
|
|||
}
|
||||
|
||||
else if (msg == STDERR_NEXT) {
|
||||
LOG(ERROR) << chomp(readString(from));
|
||||
LOG(ERROR) << absl::StripTrailingAsciiWhitespace(readString(from));
|
||||
}
|
||||
|
||||
else if (msg == STDERR_START_ACTIVITY) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue