# HG changeset patch # User Yuya Nishihara # Date 1567228358 -32400 # Node ID ce6797ef6eab33f0255b940ff6b628215762a84b # Parent b1b984f9c01d8cc60747cc74f7b5a1b27fa53f87 rust: apply more formatting fixes My cargo fmt updated these lines and they look good. diff -r b1b984f9c01d -r ce6797ef6eab rust/hg-core/src/ancestors.rs --- a/rust/hg-core/src/ancestors.rs Thu Aug 22 14:31:07 2019 +0200 +++ b/rust/hg-core/src/ancestors.rs Sat Aug 31 14:12:38 2019 +0900 @@ -784,5 +784,4 @@ missing_ancestors.remove_ancestors_from(&mut revs).unwrap(); assert!(!revs.contains(&problem_rev)); } - } diff -r b1b984f9c01d -r ce6797ef6eab rust/hg-core/src/dagops.rs --- a/rust/hg-core/src/dagops.rs Thu Aug 22 14:31:07 2019 +0200 +++ b/rust/hg-core/src/dagops.rs Sat Aug 31 14:12:38 2019 +0900 @@ -8,10 +8,10 @@ //! Miscellaneous DAG operations //! //! # Terminology -//! - By *relative heads* of a collection of revision numbers (`Revision`), -//! we mean those revisions that have no children among the collection. -//! - Similarly *relative roots* of a collection of `Revision`, we mean -//! those whose parents, if any, don't belong to the collection. +//! - By *relative heads* of a collection of revision numbers (`Revision`), we +//! mean those revisions that have no children among the collection. +//! - Similarly *relative roots* of a collection of `Revision`, we mean those +//! whose parents, if any, don't belong to the collection. use super::{Graph, GraphError, Revision, NULL_REVISION}; use crate::ancestors::AncestorsIterator; use std::collections::{BTreeSet, HashSet}; @@ -272,5 +272,4 @@ ); Ok(()) } - } diff -r b1b984f9c01d -r ce6797ef6eab rust/hg-core/src/dirstate/dirs_multiset.rs --- a/rust/hg-core/src/dirstate/dirs_multiset.rs Thu Aug 22 14:31:07 2019 +0200 +++ b/rust/hg-core/src/dirstate/dirs_multiset.rs Sat Aug 31 14:12:38 2019 +0900 @@ -316,5 +316,4 @@ }; assert_eq!(expected, new); } - } diff -r b1b984f9c01d -r ce6797ef6eab rust/hg-core/src/discovery.rs --- a/rust/hg-core/src/discovery.rs Thu Aug 22 14:31:07 2019 +0200 +++ b/rust/hg-core/src/discovery.rs Sat Aug 31 14:12:38 2019 +0900 @@ -691,5 +691,4 @@ assert_eq!(sample, vec![0, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13]); Ok(()) } - } diff -r b1b984f9c01d -r ce6797ef6eab rust/hg-core/src/filepatterns.rs --- a/rust/hg-core/src/filepatterns.rs Thu Aug 22 14:31:07 2019 +0200 +++ b/rust/hg-core/src/filepatterns.rs Sat Aug 31 14:12:38 2019 +0900 @@ -38,7 +38,8 @@ Regexp, /// Glob that matches at the front of the path RootGlob, - /// Glob that matches at any suffix of the path (still anchored at slashes) + /// Glob that matches at any suffix of the path (still anchored at + /// slashes) Glob, Path, RelPath, diff -r b1b984f9c01d -r ce6797ef6eab rust/hg-core/src/utils.rs --- a/rust/hg-core/src/utils.rs Thu Aug 22 14:31:07 2019 +0200 +++ b/rust/hg-core/src/utils.rs Sat Aug 31 14:12:38 2019 +0900 @@ -20,8 +20,7 @@ /// assert_eq!( /// line, /// b"I love writing tests!".to_vec() -///); -/// +/// ); /// ``` pub fn replace_slice(buf: &mut [T], from: &[T], to: &[T]) where diff -r b1b984f9c01d -r ce6797ef6eab rust/hg-cpython/src/filepatterns.rs --- a/rust/hg-cpython/src/filepatterns.rs Thu Aug 22 14:31:07 2019 +0200 +++ b/rust/hg-cpython/src/filepatterns.rs Sat Aug 31 14:12:38 2019 +0900 @@ -8,7 +8,8 @@ //! Bindings for the `hg::filepatterns` module provided by the //! `hg-core` crate. From Python, this will be seen as `rustext.filepatterns` -//! and can be used as replacement for the the pure `filepatterns` Python module. +//! and can be used as replacement for the the pure `filepatterns` Python +//! module. //! use crate::exceptions::{PatternError, PatternFileError}; use cpython::{