Handle tool attrs inside the bridge module
diff --git a/syntax/attrs.rs b/syntax/attrs.rs
index ccb1c51..87c4508 100644
--- a/syntax/attrs.rs
+++ b/syntax/attrs.rs
@@ -131,6 +131,15 @@
             // https://doc.rust-lang.org/reference/attributes/diagnostics.html
             passthrough_attrs.push(attr);
             continue;
+        } else if attr.path.segments.len() > 1 {
+            let tool = &attr.path.segments.first().unwrap().ident;
+            if tool == "rustfmt" {
+                // Skip, rustfmt only needs to find it in the pre-expansion source file.
+                continue;
+            } else if tool == "clippy" {
+                passthrough_attrs.push(attr);
+                continue;
+            }
         }
         cx.error(attr, "unsupported attribute");
         break;