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
6
third_party/nix/src/libstore/download.cc
vendored
6
third_party/nix/src/libstore/download.cc
vendored
|
@ -1,5 +1,7 @@
|
|||
#include "download.hh"
|
||||
|
||||
#include <absl/strings/ascii.h>
|
||||
|
||||
#include "archive.hh"
|
||||
#include "compression.hh"
|
||||
#include "finally.hh"
|
||||
|
@ -231,7 +233,9 @@ struct CurlDownloader : public Downloader {
|
|||
static int debugCallback(CURL* handle, curl_infotype type, char* data,
|
||||
size_t size, void* userptr) {
|
||||
if (type == CURLINFO_TEXT) {
|
||||
DLOG(INFO) << "curl: " << chomp(std::string(data, size));
|
||||
DLOG(INFO) << "curl: "
|
||||
<< absl::StripTrailingAsciiWhitespace(
|
||||
std::string(data, size));
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue