Skip to content

Commit

Permalink
Fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron-martin committed Feb 18, 2023
1 parent 15a4b35 commit 8f6d25d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions rust/private/extensions.bzl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Bzlmod module extensions that are only used internally"""

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

def _create_build_file_content(name):
Expand Down
6 changes: 3 additions & 3 deletions rust/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def rust_register_toolchains(
rustfmt_repo_name,
))

for toolchain in get_toolchain_repositories(name, exec_triple, extra_target_triples, versions, iso_date):
for toolchain in _get_toolchain_repositories(name, exec_triple, extra_target_triples, versions, iso_date):
toolchain_names.append(toolchain.name)
toolchain_labels[toolchain.name] = "@{}//:{}".format(toolchain.name + "_tools", "rust_toolchain")
exec_compatible_with_by_toolchain[toolchain.name] = triple_to_constraint_set(exec_triple)
Expand Down Expand Up @@ -806,7 +806,7 @@ rust_toolchain_set_repository = repository_rule(
implementation = _rust_toolchain_set_repository_impl,
)

def get_toolchain_repositories(name, exec_triple, extra_target_triples, versions, iso_date):
def _get_toolchain_repositories(name, exec_triple, extra_target_triples, versions, iso_date):
toolchain_repos = []

for target_triple in [exec_triple] + extra_target_triples:
Expand Down Expand Up @@ -904,7 +904,7 @@ def rust_repository_set(
versions = [version]

all_toolchain_names = []
for toolchain in get_toolchain_repositories(name, exec_triple, extra_target_triples, versions, iso_date):
for toolchain in _get_toolchain_repositories(name, exec_triple, extra_target_triples, versions, iso_date):
rust_toolchain_repository(
name = toolchain.name,
allocator_library = allocator_library,
Expand Down

0 comments on commit 8f6d25d

Please sign in to comment.