Skip to content

Commit 71e91e4

Browse files
committed
---
yaml --- r: 143675 b: refs/heads/try2 c: 3b441c4 h: refs/heads/master i: 143673: 734da08 143671: cc0de39 v: v3
1 parent 6cf549f commit 71e91e4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: e6176513842da1dd9e17d8536e7d76125a1bc610
8+
refs/heads/try2: 3b441c485f10722e58f71957b78e5950c53757d4
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/libextra/hex.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ impl<'self> FromHex for &'self str {
7878
* fn main () {
7979
* let hello_str = "Hello, World".to_hex();
8080
* printfln!("%s", hello_str);
81-
* let bytes = hello_str.from_hex().get();
81+
* let bytes = hello_str.from_hex().unwrap();
8282
* printfln!("%?", bytes);
8383
* let result_str = str::from_bytes(bytes);
8484
* printfln!("%s", result_str);
@@ -132,9 +132,9 @@ mod tests {
132132
133133
#[test]
134134
pub fn test_from_hex_okay() {
135-
assert_eq!("666f6f626172".from_hex().get(),
135+
assert_eq!("666f6f626172".from_hex().unwrap(),
136136
"foobar".as_bytes().to_owned());
137-
assert_eq!("666F6F626172".from_hex().get(),
137+
assert_eq!("666F6F626172".from_hex().unwrap(),
138138
"foobar".as_bytes().to_owned());
139139
}
140140
@@ -151,7 +151,7 @@ mod tests {
151151
152152
#[test]
153153
pub fn test_from_hex_ignores_whitespace() {
154-
assert_eq!("666f 6f6\r\n26172 ".from_hex().get(),
154+
assert_eq!("666f 6f6\r\n26172 ".from_hex().unwrap(),
155155
"foobar".as_bytes().to_owned());
156156
}
157157
@@ -165,8 +165,8 @@ mod tests {
165165
#[test]
166166
pub fn test_from_hex_all_bytes() {
167167
for i in range(0, 256) {
168-
assert_eq!(fmt!("%02x", i as uint).from_hex().get(), ~[i as u8]);
169-
assert_eq!(fmt!("%02X", i as uint).from_hex().get(), ~[i as u8]);
168+
assert_eq!(fmt!("%02x", i as uint).from_hex().unwrap(), ~[i as u8]);
169+
assert_eq!(fmt!("%02X", i as uint).from_hex().unwrap(), ~[i as u8]);
170170
}
171171
}
172172

0 commit comments

Comments
 (0)