Skip to content

Commit

Permalink
Run buildifier -lint=fix all
Browse files Browse the repository at this point in the history
  • Loading branch information
hlopko committed Nov 6, 2019
1 parent 5cf777d commit 2785ab3
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 16 deletions.
2 changes: 1 addition & 1 deletion examples/ffi/c_calling_rust/BUILD
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
load("@io_bazel_rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test")
load("@io_bazel_rules_rust//rust:rust.bzl", "rust_library")

rust_library(
name = "rusty",
Expand Down
2 changes: 1 addition & 1 deletion examples/ffi/rust_calling_c/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package(default_visibility = ["//ffi/rust_calling_c:__subpackages__"])

load("@io_bazel_rules_rust//rust:rust.bzl", "rust_binary", "rust_doc", "rust_library", "rust_test")
load("@io_bazel_rules_rust//rust:rust.bzl", "rust_doc", "rust_library", "rust_test")

rust_library(
name = "matrix",
Expand Down
2 changes: 1 addition & 1 deletion examples/ffi/rust_calling_c/simple/BUILD
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@rules_cc//cc:defs.bzl", "cc_library")
load("@io_bazel_rules_rust//rust:rust.bzl", "rust_binary", "rust_doc", "rust_library", "rust_test")
load("@io_bazel_rules_rust//rust:rust.bzl", "rust_binary", "rust_test")
load("@io_bazel_rules_rust//bindgen:bindgen.bzl", "rust_bindgen_library")

cc_library(
Expand Down
2 changes: 0 additions & 2 deletions examples/hello_runfiles/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package(default_visibility = ["//visibility:public"])
load(
"@io_bazel_rules_rust//rust:rust.bzl",
"rust_binary",
"rust_library",
"rust_test",
)

rust_binary(
Expand Down
1 change: 0 additions & 1 deletion examples/hello_world/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ load(
"@io_bazel_rules_rust//rust:rust.bzl",
"rust_binary",
"rust_doc",
"rust_doc_test",
)

rust_binary(
Expand Down
2 changes: 2 additions & 0 deletions proto/proto.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

load("@rules_proto//proto:defs.bzl", "ProtoInfo")

"""Rust Protobuf Rules
These build rules are used for building [protobufs][protobuf]/[gRPC][grpc] in [Rust][rust] with Bazel.
Expand Down
6 changes: 0 additions & 6 deletions test/BUILD
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
load(
"//rust:rust.bzl",
"rust_binary",
"rust_library",
"rust_test",
)
load(
"@bazel_tools//tools/build_rules:test_rules.bzl",
"rule_test",
Expand Down
6 changes: 2 additions & 4 deletions wasm_bindgen/wasm_bindgen.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

load("@io_bazel_rules_rust//rust:rust.bzl", "rust_library")
load("@io_bazel_rules_rust//rust:private/legacy_cc_starlark_api_shim.bzl", "get_libs_for_static_executable")
load("@io_bazel_rules_rust//rust:private/transitions.bzl", "wasm_bindgen_transition")

def _rust_wasm_bindgen_impl(ctx):
Expand Down Expand Up @@ -59,8 +57,8 @@ def _rust_wasm_bindgen_impl(ctx):
type_blacklisted_declarations = depset(),
es5_sources = depset([ctx.outputs.javascript_bindings]),
es6_sources = depset([ctx.outputs.javascript_bindings]),
transitive_es5_sources = depset(depset([ctx.outputs.javascript_bindings])),
transitive_es6_sources = depset(depset([ctx.outputs.javascript_bindings])),
transitive_es5_sources = depset(depset([ctx.outputs.javascript_bindings]).to_list()),
transitive_es6_sources = depset(depset([ctx.outputs.javascript_bindings]).to_list()),
),
)

Expand Down

0 comments on commit 2785ab3

Please sign in to comment.