Skip to content

Commit a1681d7

Browse files
z0w0graydon
authored andcommitted
---
yaml --- r: 47711 b: refs/heads/incoming c: 2192d11 h: refs/heads/master i: 47709: f39d632 47707: 01a77eb 47703: 035c1ef 47695: 77142ac 47679: d77f05c v: v3
1 parent c8d2118 commit a1681d7

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
@@ -6,7 +6,7 @@ refs/heads/try: 2a8fb58d79e685d5ca07b039badcf2ae3ef077ea
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/incoming: 787ddb4b7cc15178f5fb7b93d7b5f8fdbae7a584
9+
refs/heads/incoming: 2192d11cd197a983f3ceb58aad98786c1b9f890d
1010
refs/heads/dist-snap: 8b98e5a296d95c5e832db0756828e5bec31c6f50
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/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/incoming/src/libcore/semver.rs renamed to branches/incoming/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)