From c918bd01b0aef638cf99d877b0666ef4d00749db Mon Sep 17 00:00:00 2001 From: Eric Holk Date: Thu, 26 Jul 2012 14:40:00 -0700 Subject: [PATCH] Fix borrow check errors in k-nucleotide. --- src/test/bench/shootout-k-nucleotide-pipes.rs | 2 +- src/test/bench/shootout-k-nucleotide.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/bench/shootout-k-nucleotide-pipes.rs b/src/test/bench/shootout-k-nucleotide-pipes.rs index 2d9eaec7ad1e..4d4730afe44b 100644 --- a/src/test/bench/shootout-k-nucleotide-pipes.rs +++ b/src/test/bench/shootout-k-nucleotide-pipes.rs @@ -75,7 +75,7 @@ fn update_freq(mm: hashmap<~[u8], uint>, key: &[u8]) { // given a ~[u8], for each window call a function // i.e., for "hello" and windows of size four, // run it("hell") and it("ello"), then return "llo" -fn windows_with_carry(bb: ~[const u8], nn: uint, +fn windows_with_carry(bb: &[u8], nn: uint, it: fn(window: &[u8])) -> ~[u8] { let mut ii = 0u; diff --git a/src/test/bench/shootout-k-nucleotide.rs b/src/test/bench/shootout-k-nucleotide.rs index 31f373ff2959..dc64f69a06cf 100644 --- a/src/test/bench/shootout-k-nucleotide.rs +++ b/src/test/bench/shootout-k-nucleotide.rs @@ -73,7 +73,7 @@ fn update_freq(mm: hashmap<~[u8], uint>, key: &[u8]) { // given a ~[u8], for each window call a function // i.e., for "hello" and windows of size four, // run it("hell") and it("ello"), then return "llo" -fn windows_with_carry(bb: ~[const u8], nn: uint, +fn windows_with_carry(bb: &[u8], nn: uint, it: fn(window: &[u8])) -> ~[u8] { let mut ii = 0u;