From 9085fe880baac73407bec9ff00eae05f3ed40a5e Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 7 Sep 2020 21:11:46 -0700 Subject: [PATCH] Prepare for rustfmt 2.0 Summary: Generated by formatting with rustfmt 2.0.0-rc.2 and then a second time with fbsource's current rustfmt (1.4.14). This results in formatting for which rustfmt 1.4 is idempotent but is closer to the style of rustfmt 2.0, reducing the amount of code that will need to change atomically in that upgrade. --- *Why now?* **:** The 1.x branch is no longer being developed and fixes like https://github.com/rust-lang/rustfmt/issues/4159 (which we need in fbcode) only land to the 2.0 branch. --- Reviewed By: zertosh Differential Revision: D23568787 fbshipit-source-id: 4f0a79389143369493564dde4233566d3574c86f --- rust/watchman_client/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rust/watchman_client/src/lib.rs b/rust/watchman_client/src/lib.rs index 0bb095ff7fbb..e1af037816f9 100644 --- a/rust/watchman_client/src/lib.rs +++ b/rust/watchman_client/src/lib.rs @@ -64,7 +64,9 @@ use prelude::*; pub enum Error { #[error("IO Error: {0}")] Tokio(#[from] tokio::io::Error), - #[error("While invoking the {watchman_path} CLI to discover the server connection details: {reason}, stderr=`{stderr}`")] + #[error( + "While invoking the {watchman_path} CLI to discover the server connection details: {reason}, stderr=`{stderr}`" + )] ConnectionDiscovery { watchman_path: PathBuf, reason: String,