chore: prefer fmt/core.h over fmt/format.h (#5404)
This commit is contained in:
parent
3af9645615
commit
7d86d67bc7
|
@ -10,7 +10,7 @@
|
|||
|
||||
#include <signal.h>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include <libtransmission/transmission.h>
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
#include <string_view>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include "daemon.h"
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
#include <algorithm> /* std::max() */
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include "daemon.h"
|
||||
|
||||
|
|
|
@ -49,7 +49,6 @@
|
|||
|
||||
#include <fmt/chrono.h>
|
||||
#include <fmt/core.h>
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
#include <gtkmm/window.h>
|
||||
|
||||
#include <fmt/core.h>
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include <cstddef>
|
||||
#include <ctime>
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
#endif
|
||||
|
||||
#include <fmt/core.h>
|
||||
#include <fmt/format.h>
|
||||
|
||||
#define LIBTRANSMISSION_ANNOUNCER_MODULE
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include "libtransmission/transmission.h"
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ extern "C"
|
|||
#include <b64/cencode.h>
|
||||
}
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include "libtransmission/transmission.h"
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include <algorithm>
|
||||
#include <string_view>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include "libtransmission/transmission.h"
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
#define USE_COPY_FILE_RANGE
|
||||
#endif /* __linux__ */
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include "libtransmission/transmission.h"
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include <shlobj.h> /* SHCreateDirectoryEx() */
|
||||
#include <winioctl.h> /* FSCTL_SET_SPARSE */
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include "libtransmission/transmission.h"
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <string_view>
|
||||
#include <utility>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include "libtransmission/transmission.h"
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
#include <string_view>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include "quark.h"
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#endif
|
||||
|
||||
#include <fmt/chrono.h>
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include "libtransmission/transmission.h"
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <string>
|
||||
#include <string_view>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include "libtransmission/transmission.h"
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include "libtransmission/transmission.h"
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
#include <libutp/utp.h>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include "libtransmission/transmission.h"
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#define LIBTRANSMISSION_PEER_MODULE
|
||||
#include "libtransmission/transmission.h"
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include "libtransmission/transmission.h"
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// or any future license endorsed by Mnemosyne LLC.
|
||||
// License text can be found in the licenses/ folder.
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include <libutp/utp.h>
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
#include <FindDirectory.h>
|
||||
#endif
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include "libtransmission/transmission.h"
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
#include <utility>
|
||||
|
||||
#include <fmt/core.h>
|
||||
#include <fmt/format.h>
|
||||
|
||||
#ifdef SYSTEM_MINIUPNP
|
||||
#include <miniupnpc/miniupnpc.h>
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
#include <string_view>
|
||||
#include <vector>
|
||||
|
||||
#include <fmt/core.h>
|
||||
#include <fmt/format.h> // fmt::ptr
|
||||
|
||||
#include "libtransmission/transmission.h"
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include "libtransmission/transmission.h"
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// or any future license endorsed by Mnemosyne LLC.
|
||||
// License text can be found in the licenses/ folder.
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include "libtransmission/transmission.h"
|
||||
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
#include <event2/event.h>
|
||||
|
||||
#include <fmt/chrono.h>
|
||||
#include <fmt/core.h>
|
||||
#include <fmt/format.h> // fmt::ptr
|
||||
|
||||
#include "libtransmission/transmission.h"
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include <sys/wait.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include "libtransmission/transmission.h"
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <string>
|
||||
#include <string_view>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
#include <fmt/xchar.h> // for wchar_t support
|
||||
|
||||
#include <windows.h>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include <string_view>
|
||||
#include <utility>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include "libtransmission/transmission.h"
|
||||
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
#include <vector>
|
||||
|
||||
#include <fmt/core.h>
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include "libtransmission/transmission.h"
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
#include <cstdlib> // for abort()
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include "tr-assert.h"
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
#include <netinet/in.h> /* sockaddr_in */
|
||||
#endif
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include "libtransmission/transmission.h"
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include <cstring>
|
||||
#include <string_view>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include "libtransmission/transmission.h"
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
#include <event2/event.h>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include "libtransmission/transmission.h"
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include <string_view>
|
||||
#include <utility>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
/**
|
||||
* A memory buffer which uses a builtin array of N bytes, using heap
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
#include <chrono>
|
||||
|
||||
#include <fmt/core.h>
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include <libutp/utp.h>
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
#define UTF_CPP_CPLUSPLUS 201703L
|
||||
#include <utf8.h>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include <fast_float/fast_float.h>
|
||||
#include <wildmat.h>
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
#include <string_view>
|
||||
#include <optional>
|
||||
|
||||
#include <fmt/core.h>
|
||||
#include <fmt/compile.h>
|
||||
#include <fmt/format.h>
|
||||
|
||||
#define LIBTRANSMISSION_VARIANT_MODULE
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// or any future license endorsed by Mnemosyne LLC.
|
||||
// License text can be found in the licenses/ folder.
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include "libtransmission/transmission.h"
|
||||
|
||||
|
|
|
@ -17,8 +17,9 @@
|
|||
#define UTF_CPP_CPLUSPLUS 201703L
|
||||
#include <utf8.h>
|
||||
|
||||
#include <fmt/core.h>
|
||||
#include <fmt/compile.h>
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include <jsonsl.h>
|
||||
|
||||
#define LIBTRANSMISSION_VARIANT_MODULE
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include <string_view>
|
||||
#include <utility>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#define PSL_STATIC
|
||||
#include <libpsl.h>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include <string_view>
|
||||
#include <utility>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include "tr-macros.h" // tr_sha1_digest_t
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#include <curl/curl.h>
|
||||
|
||||
#include <fmt/core.h>
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include "libtransmission/transmission.h"
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include "libtransmission/transmission.h"
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
#include <string_view>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include "RpcClient.h"
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#define LIBTRANSMISSION_ANNOUNCER_MODULE
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// or any future license endorsed by Mnemosyne LLC.
|
||||
// License text can be found in the licenses/ folder.
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include <libtransmission/transmission.h>
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include <libtransmission/transmission.h>
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include <string>
|
||||
#include <string_view>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include <libtransmission/transmission.h>
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include <string_view>
|
||||
#include <vector>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include <libtransmission/transmission.h>
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#include <event2/buffer.h>
|
||||
|
||||
#include <fmt/chrono.h>
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include <libtransmission/transmission.h>
|
||||
#include <libtransmission/crypto-utils.h>
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
#include <fmt/chrono.h>
|
||||
#include <fmt/core.h>
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include <libtransmission/transmission.h>
|
||||
|
||||
|
|
Loading…
Reference in New Issue