diff options
author | 2023-12-13 15:54:49 -0800 | |
---|---|---|
committer | 2023-12-14 16:12:21 -0800 | |
commit | ff694a8c88c632559c72653edf99f21c3d761dee (patch) | |
tree | a0b6c2a6cda60be82412b377d15d0a9b86eca065 /rust/sanitize.go | |
parent | 402130276c75fd967dcae894bd363edc3050d205 (diff) |
Convert Provider to generic providers API
Convert all of the callers of Provider/HasProvider to use the type-safe
android.ModuleProvider API.
Bug: 316410648
Test: builds
Change-Id: I73479de1625fa2865b6c73444cd477e50d56dc5a
Diffstat (limited to 'rust/sanitize.go')
-rw-r--r-- | rust/sanitize.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/sanitize.go b/rust/sanitize.go index 0b1043597..9dda43fd6 100644 --- a/rust/sanitize.go +++ b/rust/sanitize.go @@ -270,7 +270,7 @@ func rustSanitizerRuntimeMutator(mctx android.BottomUpMutatorContext) { } // If we're using snapshots, redirect to snapshot whenever possible // TODO(b/178470649): clean manual snapshot redirections - snapshot := mctx.Provider(cc.SnapshotInfoProvider).(cc.SnapshotInfo) + snapshot, _ := android.ModuleProvider(mctx, cc.SnapshotInfoProvider) if lib, ok := snapshot.StaticLibs[noteDep]; ok { noteDep = lib } |