Skip to content

Commit 1da7a69

Browse files
dtolnayUebelAndre
andauthored
Clean up the check for absence of toolchain.default_edition
Co-authored-by: UebelAndre <[email protected]>
1 parent a723865 commit 1da7a69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/private/rust.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def get_edition(attr, toolchain, label):
119119
"""
120120
if getattr(attr, "edition"):
121121
return attr.edition
122-
elif toolchain.default_edition == "":
122+
elif not toolchain.default_edition:
123123
fail("Attribute `edition` is required for {}.".format(label))
124124
else:
125125
return toolchain.default_edition

0 commit comments

Comments
 (0)