From 7a153248e71b438cf28162b74e3a9b7992e0b183 Mon Sep 17 00:00:00 2001 From: Brian Szmyd Date: Wed, 20 Sep 2023 21:48:33 -0700 Subject: [PATCH] Consistent const --- src/lib/blob_route.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/blob_route.hpp b/src/lib/blob_route.hpp index 9f42b4f5..c54a9954 100644 --- a/src/lib/blob_route.hpp +++ b/src/lib/blob_route.hpp @@ -10,8 +10,8 @@ namespace homeobject { struct BlobRoute { shard_id shard; blob_id blob; - bool operator==(const BlobRoute&) const = default; - bool operator<(const BlobRoute&) const = default; + bool operator==(BlobRoute const&) const = default; + bool operator<(BlobRoute const&) const = default; }; } // namespace homeobject @@ -25,7 +25,7 @@ struct formatter< homeobject::BlobRoute > { } template < typename FormatContext > - auto format(const homeobject::BlobRoute& r, FormatContext& ctx) { + auto format(homeobject::BlobRoute const& r, FormatContext& ctx) { return format_to(ctx.out(), "{}:{:012x}", r.shard, r.blob); } };