##// END OF EJS Templates
rust: apply more formatting fixes...
Yuya Nishihara -
r43109:ce6797ef default
parent child Browse files
Show More
@@ -784,5 +784,4 b' mod tests {'
784 missing_ancestors.remove_ancestors_from(&mut revs).unwrap();
784 missing_ancestors.remove_ancestors_from(&mut revs).unwrap();
785 assert!(!revs.contains(&problem_rev));
785 assert!(!revs.contains(&problem_rev));
786 }
786 }
787
788 }
787 }
@@ -8,10 +8,10 b''
8 //! Miscellaneous DAG operations
8 //! Miscellaneous DAG operations
9 //!
9 //!
10 //! # Terminology
10 //! # Terminology
11 //! - By *relative heads* of a collection of revision numbers (`Revision`),
11 //! - By *relative heads* of a collection of revision numbers (`Revision`), we
12 //! we mean those revisions that have no children among the collection.
12 //! mean those revisions that have no children among the collection.
13 //! - Similarly *relative roots* of a collection of `Revision`, we mean
13 //! - Similarly *relative roots* of a collection of `Revision`, we mean those
14 //! those whose parents, if any, don't belong to the collection.
14 //! whose parents, if any, don't belong to the collection.
15 use super::{Graph, GraphError, Revision, NULL_REVISION};
15 use super::{Graph, GraphError, Revision, NULL_REVISION};
16 use crate::ancestors::AncestorsIterator;
16 use crate::ancestors::AncestorsIterator;
17 use std::collections::{BTreeSet, HashSet};
17 use std::collections::{BTreeSet, HashSet};
@@ -272,5 +272,4 b' mod tests {'
272 );
272 );
273 Ok(())
273 Ok(())
274 }
274 }
275
276 }
275 }
@@ -316,5 +316,4 b' mod tests {'
316 };
316 };
317 assert_eq!(expected, new);
317 assert_eq!(expected, new);
318 }
318 }
319
320 }
319 }
@@ -691,5 +691,4 b' mod tests {'
691 assert_eq!(sample, vec![0, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13]);
691 assert_eq!(sample, vec![0, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13]);
692 Ok(())
692 Ok(())
693 }
693 }
694
695 }
694 }
@@ -38,7 +38,8 b' pub enum PatternSyntax {'
38 Regexp,
38 Regexp,
39 /// Glob that matches at the front of the path
39 /// Glob that matches at the front of the path
40 RootGlob,
40 RootGlob,
41 /// Glob that matches at any suffix of the path (still anchored at slashes)
41 /// Glob that matches at any suffix of the path (still anchored at
42 /// slashes)
42 Glob,
43 Glob,
43 Path,
44 Path,
44 RelPath,
45 RelPath,
@@ -20,8 +20,7 b' pub mod files;'
20 /// assert_eq!(
20 /// assert_eq!(
21 /// line,
21 /// line,
22 /// b"I love writing tests!".to_vec()
22 /// b"I love writing tests!".to_vec()
23 ///);
23 /// );
24 ///
25 /// ```
24 /// ```
26 pub fn replace_slice<T>(buf: &mut [T], from: &[T], to: &[T])
25 pub fn replace_slice<T>(buf: &mut [T], from: &[T], to: &[T])
27 where
26 where
@@ -8,7 +8,8 b''
8
8
9 //! Bindings for the `hg::filepatterns` module provided by the
9 //! Bindings for the `hg::filepatterns` module provided by the
10 //! `hg-core` crate. From Python, this will be seen as `rustext.filepatterns`
10 //! `hg-core` crate. From Python, this will be seen as `rustext.filepatterns`
11 //! and can be used as replacement for the the pure `filepatterns` Python module.
11 //! and can be used as replacement for the the pure `filepatterns` Python
12 //! module.
12 //!
13 //!
13 use crate::exceptions::{PatternError, PatternFileError};
14 use crate::exceptions::{PatternError, PatternFileError};
14 use cpython::{
15 use cpython::{
General Comments 0
You need to be logged in to leave comments. Login now