Skip to content

Commit

Permalink
Merge pull request #11878 from brave/bsc-fix-lint
Browse files Browse the repository at this point in the history
Add NOLINT for known issue added w/ SKUs
  • Loading branch information
bsclifton committed Jan 18, 2022
2 parents 7cc6494 + 213bea2 commit 1daf931
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions components/skus/browser/rs/cxx/src/shim.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
7 changes: 4 additions & 3 deletions components/skus/browser/skus_context_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
}

Expand Down

0 comments on commit 1daf931

Please sign in to comment.