Index: third_party/rust/qr_code/v2/BUILD.gn
--- third_party/rust/qr_code/v2/BUILD.gn.orig
+++ third_party/rust/qr_code/v2/BUILD.gn
@@ -40,6 +40,10 @@ cargo_crate("lib") {
   cargo_pkg_repository = "https://github.com/RCasatta/qr_code"
   cargo_pkg_version = "2.0.0"
 
+  rustflags = [
+    "--cap-lints=allow",
+  ]
+
   allow_unsafe = false
 
   #####################################################################
