We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 21b0317 + 19fe936 commit 7e6355aCopy full SHA for 7e6355a
src/ffi/list.rs
@@ -30,14 +30,12 @@ impl List {
30
self.len += 1;
31
self.head = unsafe { curl_slist_append(self.head, val.as_ptr()) };
32
}
33
-}
34
35
-impl Collection for List {
36
- fn len(&self) -> uint {
+ pub fn len(&self) -> uint {
37
self.len
38
39
40
- fn is_empty(&self) -> bool {
+ pub fn is_empty(&self) -> bool {
41
self.len == 0
42
43
src/test/server.rs
@@ -210,7 +210,7 @@ impl OpSequenceResult {
210
pub fn assert(&self) {
211
match self.rx.recv() {
212
Ok(_) => {}
213
- Err(e) => fail!("http exchange did not proceed as expected: {}", e)
+ Err(e) => panic!("http exchange did not proceed as expected: {}", e)
214
215
216
0 commit comments