Skip to content

Commit fe14d8e

Browse files
stepanchegfacebook-github-bot
authored andcommitted
format_code_in_doc_comments = true
Summary: D52632085 Reviewed By: chadaustin, zertosh Differential Revision: D52639860 fbshipit-source-id: 170172ac9ed6b2703cb5dfa85da86565797a9452
1 parent 23fe5a7 commit fe14d8e

File tree

3 files changed

+26
-26
lines changed

3 files changed

+26
-26
lines changed

watchman/rust/watchman_client/src/fields.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,8 @@ define_field!(
282282
/// list of field names:
283283
///
284284
/// ```
285-
/// use watchman_client::prelude::*;
286285
/// use serde::Deserialize;
286+
/// use watchman_client::prelude::*;
287287
///
288288
/// query_result_type! {
289289
/// struct NameAndHash {

watchman/rust/watchman_client/src/lib.rs

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@
2222
//! use watchman_client::prelude::*;
2323
//! #[tokio::main]
2424
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
25-
//! let mut client = Connector::new().connect().await?;
26-
//! let resolved = client
27-
//! .resolve_root(CanonicalPath::canonicalize(".")?)
28-
//! .await?;
25+
//! let mut client = Connector::new().connect().await?;
26+
//! let resolved = client
27+
//! .resolve_root(CanonicalPath::canonicalize(".")?)
28+
//! .await?;
2929
//!
30-
//! // Basic globs -> names
31-
//! let files = client.glob(&resolved, &["**/*.rs"]).await?;
32-
//! println!("files: {:#?}", files);
33-
//! Ok(())
30+
//! // Basic globs -> names
31+
//! let files = client.glob(&resolved, &["**/*.rs"]).await?;
32+
//! println!("files: {:#?}", files);
33+
//! Ok(())
3434
//! }
3535
//! ```
3636
#![deny(warnings)]
@@ -957,8 +957,8 @@ impl Client {
957957
/// [NameOnly](struct.NameOnly.html) struct.
958958
///
959959
/// ```
960-
/// use watchman_client::prelude::*;
961960
/// use serde::Deserialize;
961+
/// use watchman_client::prelude::*;
962962
///
963963
/// query_result_type! {
964964
/// struct NameAndType {
@@ -968,20 +968,20 @@ impl Client {
968968
/// }
969969
///
970970
/// async fn query(
971-
/// client: &mut Client,
972-
/// resolved: &ResolvedRoot
971+
/// client: &mut Client,
972+
/// resolved: &ResolvedRoot,
973973
/// ) -> Result<(), Box<dyn std::error::Error>> {
974-
/// let response: QueryResult<NameAndType> = client
975-
/// .query(
976-
/// &resolved,
977-
/// QueryRequestCommon {
978-
/// glob: Some(vec!["**/*.rs".to_string()]),
979-
/// ..Default::default()
980-
/// },
981-
/// )
982-
/// .await?;
983-
/// println!("response: {:#?}", response);
984-
/// Ok(())
974+
/// let response: QueryResult<NameAndType> = client
975+
/// .query(
976+
/// &resolved,
977+
/// QueryRequestCommon {
978+
/// glob: Some(vec!["**/*.rs".to_string()]),
979+
/// ..Default::default()
980+
/// },
981+
/// )
982+
/// .await?;
983+
/// println!("response: {:#?}", response);
984+
/// Ok(())
985985
/// }
986986
/// ```
987987
///

watchman/rust/watchman_client/src/pdu.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -736,9 +736,9 @@ pub enum ContentSha1Hex {
736736
/// use watchman_client::prelude::*;
737737
/// #[derive(Deserialize, Debug, Clone)]
738738
/// struct NameAndType {
739-
/// name: std::path::PathBuf,
740-
/// #[serde(rename = "type")]
741-
/// file_type: FileType,
739+
/// name: std::path::PathBuf,
740+
/// #[serde(rename = "type")]
741+
/// file_type: FileType,
742742
/// }
743743
/// ```
744744
#[derive(Serialize, Deserialize, Debug, Clone, Copy)]

0 commit comments

Comments
 (0)