mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 00:08:07 +02:00
Merge pull request #10656 from obsidiansystems/fix-build-failure
Fix build failure with clang
This commit is contained in:
commit
36150e6fce
2 changed files with 4 additions and 2 deletions
|
@ -230,6 +230,8 @@ struct PublicKey
|
|||
{
|
||||
std::string type = "ssh-ed25519";
|
||||
std::string key;
|
||||
|
||||
auto operator <=>(const PublicKey &) const = default;
|
||||
};
|
||||
|
||||
std::string publicKeys_to_string(const std::vector<PublicKey>&);
|
||||
|
|
|
@ -22,7 +22,7 @@ public:
|
|||
TEST_F(FIXTURE, PublicKey_ ## NAME ## _from_json) { \
|
||||
readTest(#NAME ".json", [&](const auto & encoded_) { \
|
||||
fetchers::PublicKey expected { VAL }; \
|
||||
auto got = nlohmann::json::parse(encoded_); \
|
||||
fetchers::PublicKey got = nlohmann::json::parse(encoded_); \
|
||||
ASSERT_EQ(got, expected); \
|
||||
}); \
|
||||
} \
|
||||
|
@ -47,7 +47,7 @@ TEST_F(PublicKeyTest, PublicKey_noRoundTrip_from_json) {
|
|||
readTest("noRoundTrip.json", [&](const auto & encoded_) {
|
||||
fetchers::PublicKey expected = { .type = "ssh-ed25519", .key = "ABCDE" };
|
||||
fetchers::PublicKey got = nlohmann::json::parse(encoded_);
|
||||
ASSERT_EQ(got, nlohmann::json(expected));
|
||||
ASSERT_EQ(got, expected);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue