Skip to content

Commit 3511708

Browse files
z0w0graydon
authored andcommitted
---
yaml --- r: 53147 b: refs/heads/dist-snap c: 2192d11 h: refs/heads/master i: 53145: 0553361 53143: 9f2c44f v: v3
1 parent 0a606ba commit 3511708

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
@@ -7,7 +7,7 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
99
refs/heads/incoming: 44d4d6de762f3f9aae1fedcf454c66b79b3ad58d
10-
refs/heads/dist-snap: 787ddb4b7cc15178f5fb7b93d7b5f8fdbae7a584
10+
refs/heads/dist-snap: 2192d11cd197a983f3ceb58aad98786c1b9f890d
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1313
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

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