Fix error message formatting in rust_proto_library

PiperOrigin-RevId: 678386953
pull/18476/head
Protobuf Team Bot 2 months ago committed by Copybara-Service
parent 3163111b6f
commit b5d33208b8
  1. 2
      rust/defs.bzl

@ -28,7 +28,7 @@ def rust_proto_library(name, deps, **args):
""" """
if not name.endswith("_rust_proto"): if not name.endswith("_rust_proto"):
fail( fail(
"{}: Name rust_proto_library target should end with `_rust_proto`, but was '{}'" "Name rust_proto_library target should end with `_rust_proto`, but was '{}'"
.format(name), .format(name),
) )
name = name.removesuffix("_rust_proto") name = name.removesuffix("_rust_proto")

Loading…
Cancel
Save