Skip to content

Commit 3e87146

Browse files
z0w0graydon
authored andcommitted
---
yaml --- r: 47023 b: refs/heads/try c: 2192d11 h: refs/heads/master i: 47021: 11071c7 47019: bde2fb4 47015: 48cf742 47007: 2737d6b v: v3
1 parent 873b483 commit 3e87146

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
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: 3bbcac322669cff3abde5be937cc4ec3860f3985
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d9689399d091c3265f00434a69c551a61c28dc
5-
refs/heads/try: 787ddb4b7cc15178f5fb7b93d7b5f8fdbae7a584
5+
refs/heads/try: 2192d11cd197a983f3ceb58aad98786c1b9f890d
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/AUTHORS.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,4 +161,4 @@ Wade Mealing <[email protected]>
161161
William Ting <[email protected]>
162162
Yasuhiro Fujii <[email protected]>
163163
Youngsoo Son <[email protected]>
164-
Zack Corr <[email protected]>
164+
Zack Corr <[email protected]>

branches/try/src/libcore/semver.rs renamed to branches/try/src/libstd/semver.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ impl Version: cmp::Ord {
5151
},
5252
None => false
5353
})
54-
}
54+
}
5555
#[inline(always)]
5656
pure fn le(&self, other: &Version) -> bool {
5757
self.major <= other.major ||
@@ -173,7 +173,7 @@ fn parse_reader(rdr: io::Reader) -> Option<(Version, char)> {
173173
ch))
174174
}
175175

176-
pub fn parse(s: ~str) -> Option<Version> {
176+
pub fn parse(s: &str) -> Option<Version> {
177177
do io::with_str_reader(s) |rdr| {
178178
do parse_reader(rdr).chain_ref |&item| {
179179
let (version, ch) = item;
@@ -200,25 +200,25 @@ fn test_parse() {
200200
assert parse("a.b.c") == None;
201201
assert parse("1.2.3 abc") == None;
202202

203-
assert parse("1.2.3") == Some({
203+
assert parse("1.2.3") == Some(Version {
204204
major: 1u,
205205
minor: 2u,
206206
patch: 3u,
207207
tag: None,
208208
});
209-
assert parse(" 1.2.3 ") == Some({
209+
assert parse(" 1.2.3 ") == Some(Version {
210210
major: 1u,
211211
minor: 2u,
212212
patch: 3u,
213213
tag: None,
214214
});
215-
assert parse("1.2.3-alpha1") == Some({
215+
assert parse("1.2.3-alpha1") == Some(Version {
216216
major: 1u,
217217
minor: 2u,
218218
patch: 3u,
219219
tag: Some("alpha1")
220220
});
221-
assert parse(" 1.2.3-alpha1 ") == Some({
221+
assert parse(" 1.2.3-alpha1 ") == Some(Version {
222222
major: 1u,
223223
minor: 2u,
224224
patch: 3u,

0 commit comments

Comments
 (0)