From 6a338951c6a8bf76b235f64f3903da84dac0b705 Mon Sep 17 00:00:00 2001 From: Luqman Aden Date: Sat, 20 Apr 2013 05:38:23 -0700 Subject: [PATCH] Update for language changes. --- wapcaplet.rc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wapcaplet.rc b/wapcaplet.rc index b58e49d..e279579 100644 --- a/wapcaplet.rc +++ b/wapcaplet.rc @@ -67,7 +67,7 @@ pub fn from_lwc_string(s: *lwc_string) -> LwcString { } } -pub impl LwcString { +pub impl<'self> LwcString { fn len(&self) -> uint { unsafe { (*self.string).len as uint @@ -85,7 +85,7 @@ pub impl LwcString { } } - fn to_str_slice(&self) -> &'self str { + fn to_str_slice(&'self self) -> &'self str { unsafe { let p: *u8 = transmute(self.string.offset(1)); do str::raw::buf_as_slice(p, self.len()) |slice| {