From 98bd306816f8c3d3e7569032b9b6ace76892d963 Mon Sep 17 00:00:00 2001 From: Martin Robinson Date: Wed, 28 Feb 2024 14:53:04 +0100 Subject: mach: Do not use unstable rust for `rustfmt` (#31441) We can use stable rust if we pass the unstable configuration as command-line arguments to rustfmt itself. This prevents needing to install an unstable rust toolchain. The one downside here is that it doesn't seem that "ignore" is supported so we have to start formatting the files in "third_party." This shouldn't be a huge issue because we don't plan to check much more rust code into those directories. --- third_party/blurmac/src/framework.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'third_party') diff --git a/third_party/blurmac/src/framework.rs b/third_party/blurmac/src/framework.rs index a441b9ecb18..23f429a422c 100644 --- a/third_party/blurmac/src/framework.rs +++ b/third_party/blurmac/src/framework.rs @@ -485,6 +485,8 @@ pub mod cb { // CBCentralManagerScanOption...Key // CBAdvertisementData...Key - pub use self::link::CBAdvertisementDataServiceUUIDsKey as ADVERTISEMENTDATASERVICEUUIDSKEY; - pub use self::link::CBCentralManagerScanOptionAllowDuplicatesKey as CENTRALMANAGERSCANOPTIONALLOWDUPLICATESKEY; + pub use self::link::{ + CBAdvertisementDataServiceUUIDsKey as ADVERTISEMENTDATASERVICEUUIDSKEY, + CBCentralManagerScanOptionAllowDuplicatesKey as CENTRALMANAGERSCANOPTIONALLOWDUPLICATESKEY, + }; } -- cgit v1.2.3