From dc50fb7958312e8ee5b4a03db516bcafd6df3d51 Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Thu, 17 Oct 2013 15:42:05 -0700 Subject: [PATCH] Fix broken test case --- rust.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rust.rs b/rust.rs index 0f7654e54..1e3c5a8c6 100644 --- a/rust.rs +++ b/rust.rs @@ -430,8 +430,7 @@ pub mod test { comp.define_functions(global::debug_fns); let s = ~"debug(22);"; - let bytes = s.as_bytes().to_owned(); - cx.evaluate_script(comp.global_obj, bytes, ~"test", 1u) + cx.evaluate_script(comp.global_obj, s, ~"test", 1u) }); }