Skip to content

Commit f9ba4b2

Browse files
committed
---
yaml --- r: 110328 b: refs/heads/try c: 52974bd h: refs/heads/master v: v3
1 parent 4e62b73 commit f9ba4b2

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: e415c25bcd81dc1f9a5a3d25d9b48ed2d545336b
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: c7fac4471201977fdb1c0c0a26c87287e12dc644
5-
refs/heads/try: 89fa141cd71a3b817ebc1b7c82522818f5280360
5+
refs/heads/try: 52974bd6950ce6672a526874c3d8bf273514f912
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/libglob/lib.rs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,11 @@ use std::path::is_sep;
4141
* pattern - see the `glob` function for more details.
4242
*/
4343
pub struct Paths {
44-
priv root: Path,
45-
priv dir_patterns: Vec<Pattern> ,
46-
priv options: MatchOptions,
47-
priv todo: Vec<(Path,uint)> }
44+
root: Path,
45+
dir_patterns: Vec<Pattern>,
46+
options: MatchOptions,
47+
todo: Vec<(Path,uint)>,
48+
}
4849

4950
///
5051
/// Return an iterator that produces all the Paths that match the given pattern,
@@ -176,7 +177,8 @@ fn list_dir_sorted(path: &Path) -> Vec<Path> {
176177
*/
177178
#[deriving(Clone, Eq, TotalEq, Ord, TotalOrd, Hash, Default)]
178179
pub struct Pattern {
179-
priv tokens: Vec<PatternToken> }
180+
tokens: Vec<PatternToken>,
181+
}
180182

181183
#[deriving(Clone, Eq, TotalEq, Ord, TotalOrd, Hash)]
182184
enum PatternToken {
@@ -513,21 +515,21 @@ pub struct MatchOptions {
513515
* currently only considers upper/lower case relationships between ASCII characters,
514516
* but in future this might be extended to work with Unicode.
515517
*/
516-
priv case_sensitive: bool,
518+
case_sensitive: bool,
517519

518520
/**
519521
* If this is true then path-component separator characters (e.g. `/` on Posix)
520522
* must be matched by a literal `/`, rather than by `*` or `?` or `[...]`
521523
*/
522-
priv require_literal_separator: bool,
524+
require_literal_separator: bool,
523525

524526
/**
525527
* If this is true then paths that contain components that start with a `.` will
526528
* not match unless the `.` appears literally in the pattern: `*`, `?` or `[...]`
527529
* will not match. This is useful because such files are conventionally considered
528530
* hidden on Unix systems and it might be desirable to skip them when listing files.
529531
*/
530-
priv require_literal_leading_dot: bool
532+
require_literal_leading_dot: bool
531533
}
532534

533535
impl MatchOptions {

0 commit comments

Comments
 (0)