summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-05-12 02:41:15 -0400
committerAlex Crichton <alex@alexcrichton.com>2013-05-14 12:25:18 -0400
commitccfb3ebf0310444804542c93e079a78c20bf5415 (patch)
treec40f9f7b05e48dc25efa745f675479c7e6f8d882 /src/libstd
parent92d39fe4d5e5ad3d2c2dcafe45eaf6e23edddfd7 (diff)
downloadrust-ccfb3ebf0310444804542c93e079a78c20bf5415.tar.gz
rust-ccfb3ebf0310444804542c93e079a78c20bf5415.zip
rusti: Remove #[allow(vecs_implicitly_copyable)]
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/rl.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/rl.rs b/src/libstd/rl.rs
index 81152430e78..d15a8fc0136 100644
--- a/src/libstd/rl.rs
+++ b/src/libstd/rl.rs
@@ -28,7 +28,7 @@ pub mod rustrt {
 }
 
 /// Add a line to history
-pub unsafe fn add_history(line: ~str) -> bool {
+pub unsafe fn add_history(line: &str) -> bool {
     do str::as_c_str(line) |buf| {
         rustrt::linenoiseHistoryAdd(buf) == 1 as c_int
     }
@@ -40,21 +40,21 @@ pub unsafe fn set_history_max_len(len: int) -> bool {
 }
 
 /// Save line history to a file
-pub unsafe fn save_history(file: ~str) -> bool {
+pub unsafe fn save_history(file: &str) -> bool {
     do str::as_c_str(file) |buf| {
         rustrt::linenoiseHistorySave(buf) == 1 as c_int
     }
 }
 
 /// Load line history from a file
-pub unsafe fn load_history(file: ~str) -> bool {
+pub unsafe fn load_history(file: &str) -> bool {
     do str::as_c_str(file) |buf| {
         rustrt::linenoiseHistoryLoad(buf) == 1 as c_int
     }
 }
 
 /// Print out a prompt and then wait for input and return it
-pub unsafe fn read(prompt: ~str) -> Option<~str> {
+pub unsafe fn read(prompt: &str) -> Option<~str> {
     do str::as_c_str(prompt) |buf| {
         let line = rustrt::linenoise(buf);