Add [[nodiscard]] where ignoring a Result return type is an error

This commit is contained in:
MarcoFalke
2023-05-29 13:15:47 +02:00
parent a2e111b8a3
commit dddde27f6f
6 changed files with 8 additions and 8 deletions

View File

@@ -1074,7 +1074,7 @@ struct MigrationResult {
};
//! Do all steps to migrate a legacy wallet to a descriptor wallet
util::Result<MigrationResult> MigrateLegacyToDescriptor(const std::string& wallet_name, const SecureString& passphrase, WalletContext& context);
[[nodiscard]] util::Result<MigrationResult> MigrateLegacyToDescriptor(const std::string& wallet_name, const SecureString& passphrase, WalletContext& context);
} // namespace wallet
#endif // BITCOIN_WALLET_WALLET_H