Skip to content

Commit f90b07a

Browse files
committed
Fix unused assignment lint in keep/defs.bzl
Reported by `buck2 starlark lint keep/defs.bzl` keep/defs.bzl:10:12-21: Unused assignment of `subtarget`
1 parent b1e184f commit f90b07a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

keep/defs.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ load("@prelude//rust:link_info.bzl", "RustLinkInfo", "RustLinkStrategyInfo")
77
load("@toolchains//:rust.bzl", "RustcFlags")
88

99
def keep(default: str) -> (str, str):
10-
stage, subtarget = default.removeprefix("rust//").split(":")
10+
stage, _subtarget = default.removeprefix("rust//").split(":")
1111
if stage not in ["stage1", "stage2"]:
1212
fail("unexpected keep target:", default)
1313
return (default, stage)

0 commit comments

Comments
 (0)