Add NOLINT for known issue added w/ SKUs

Fixes https://github.com/brave/brave-browser/issues/20542
This commit is contained in:
Brian Clifton
2022-01-17 22:31:52 -07:00
parent f62447cdf4
commit 213bea2a4f
2 changed files with 8 additions and 6 deletions
+4 -3
View File
@@ -94,11 +94,12 @@ void shim_logMessage(rust::cxxbridge1::Str file,
TracingLevel level,
rust::cxxbridge1::Str message);
void shim_purge(skus::SkusContext& ctx);
void shim_set(skus::SkusContext& ctx,
void shim_purge(skus::SkusContext& ctx); // NOLINT
void shim_set(skus::SkusContext& ctx, // NOLINT
rust::cxxbridge1::Str key,
rust::cxxbridge1::Str value);
::rust::String shim_get(skus::SkusContext& ctx, rust::cxxbridge1::Str key);
::rust::String shim_get(skus::SkusContext& ctx, // NOLINT
rust::cxxbridge1::Str key);
void shim_scheduleWakeup(
::std::uint64_t delay_ms,
+4 -3
View File
@@ -73,18 +73,19 @@ void shim_logMessage(rust::cxxbridge1::Str file,
}
}
void shim_purge(skus::SkusContext& ctx) {
void shim_purge(skus::SkusContext& ctx) { // NOLINT
ctx.PurgeStore();
}
void shim_set(skus::SkusContext& ctx,
void shim_set(skus::SkusContext& ctx, // NOLINT
rust::cxxbridge1::Str key,
rust::cxxbridge1::Str value) {
ctx.UpdateStoreValue(static_cast<std::string>(key),
static_cast<std::string>(value));
}
::rust::String shim_get(skus::SkusContext& ctx, rust::cxxbridge1::Str key) {
::rust::String shim_get(skus::SkusContext& ctx, // NOLINT
rust::cxxbridge1::Str key) {
return ::rust::String(ctx.GetValueFromStore(static_cast<std::string>(key)));
}