Skip to content

Commit

Permalink
buildifier
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-mccall committed Jan 13, 2025
1 parent 965c2c8 commit 7e348b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/private/rust_analyzer.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ def _create_single_crate(ctx, attrs, info):
# 'root' is a transformed source, likely a symlink.
# 'srcs' are what the user originally specified, likely workspace paths.
for src in getattr(ctx.rule.files, "srcs", []):
if src.is_source and info.crate.root.short_path == src.short_path:
crate["root_module"] = _WORKSPACE_TEMPLATE + src.path
if src.is_source and info.crate.root.short_path == src.short_path:
crate["root_module"] = _WORKSPACE_TEMPLATE + src.path

if info.build_info != None and info.build_info.out_dir != None:
out_dir_path = info.build_info.out_dir.path
Expand Down

0 comments on commit 7e348b1

Please sign in to comment.