mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
rusti: Correct formatting
This commit is contained in:
parent
9ed8ce3364
commit
1afa29986f
@ -65,7 +65,7 @@ pub fn complete(cb: CompletionCb) unsafe {
|
||||
task::local_data::local_data_set(complete_key, @(move cb));
|
||||
|
||||
extern fn callback(line: *c_char, completions: *()) unsafe {
|
||||
let cb: CompletionCb = copy *task::local_data::local_data_get(complete_key).get();
|
||||
let cb = copy *task::local_data::local_data_get(complete_key).get();
|
||||
|
||||
do cb(str::raw::from_c_str(line)) |suggestion| {
|
||||
do str::as_c_str(suggestion) |buf| {
|
||||
|
Loading…
Reference in New Issue
Block a user