diff --git a/presence/implementation/advertisement_decoder_rust_impl.h b/presence/implementation/advertisement_decoder_rust_impl.h index 653b3822..9599b4a6 100644 --- a/presence/implementation/advertisement_decoder_rust_impl.h +++ b/presence/implementation/advertisement_decoder_rust_impl.h @@ -15,7 +15,6 @@ #ifndef THIRD_PARTY_NEARBY_PRESENCE_ADVERTISEMENT_DECODER_RUST_IMPL_H_ #define THIRD_PARTY_NEARBY_PRESENCE_ADVERTISEMENT_DECODER_RUST_IMPL_H_ -#include #include #include "absl/container/flat_hash_map.h" @@ -30,12 +29,13 @@ namespace presence { // Implements the Rust backed parsing and decrypting of advertisement bytes class AdvertisementDecoderImpl : public AdvertisementDecoder { public: - AdvertisementDecoderImpl() : cred_book_(InitializeCredentialBook(nullptr)) {}; + AdvertisementDecoderImpl() : cred_book_(InitializeCredentialBook(nullptr)) {} + explicit AdvertisementDecoderImpl( absl::flat_hash_map>* credentials_map) - : cred_book_(InitializeCredentialBook(credentials_map)) {}; + : cred_book_(InitializeCredentialBook(credentials_map)) {} absl::StatusOr DecodeAdvertisement( absl::string_view advertisement) override;