diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2014-02-23 21:29:35 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2014-02-24 07:44:10 +1100 |
| commit | efaf4db24c92e119e26dc575ffd6bfd3b91fb87d (patch) | |
| tree | e735230061b0c480550fdaad749a998bc48df78d /src/libglob | |
| parent | 5444da54fd32b705eec28112e309f63b704e3f8c (diff) | |
| download | rust-efaf4db24c92e119e26dc575ffd6bfd3b91fb87d.tar.gz rust-efaf4db24c92e119e26dc575ffd6bfd3b91fb87d.zip | |
Transition to new `Hash`, removing IterBytes and std::to_bytes.
Diffstat (limited to 'src/libglob')
| -rw-r--r-- | src/libglob/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libglob/lib.rs b/src/libglob/lib.rs index 3a93b10ad29..819e0949e3b 100644 --- a/src/libglob/lib.rs +++ b/src/libglob/lib.rs @@ -165,12 +165,12 @@ fn list_dir_sorted(path: &Path) -> ~[Path] { /** * A compiled Unix shell style pattern. */ -#[deriving(Clone, Eq, TotalEq, Ord, TotalOrd, IterBytes, Default)] +#[deriving(Clone, Eq, TotalEq, Ord, TotalOrd, Hash, Default)] pub struct Pattern { priv tokens: ~[PatternToken] } -#[deriving(Clone, Eq, TotalEq, Ord, TotalOrd, IterBytes)] +#[deriving(Clone, Eq, TotalEq, Ord, TotalOrd, Hash)] enum PatternToken { Char(char), AnyChar, @@ -179,7 +179,7 @@ enum PatternToken { AnyExcept(~[CharSpecifier]) } -#[deriving(Clone, Eq, TotalEq, Ord, TotalOrd, IterBytes)] +#[deriving(Clone, Eq, TotalEq, Ord, TotalOrd, Hash)] enum CharSpecifier { SingleChar(char), CharRange(char, char) @@ -490,7 +490,7 @@ fn chars_eq(a: char, b: char, case_sensitive: bool) -> bool { /** * Configuration options to modify the behaviour of `Pattern::matches_with(..)` */ -#[deriving(Clone, Eq, TotalEq, Ord, TotalOrd, IterBytes, Default)] +#[deriving(Clone, Eq, TotalEq, Ord, TotalOrd, Hash, Default)] pub struct MatchOptions { /** |
