mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 01:28:18 +03:00
libserialize: use unboxed closures
This commit is contained in:
@@ -2680,7 +2680,7 @@ fn test_write_object() {
|
||||
from_str(a.to_pretty_str().as_slice()).unwrap());
|
||||
}
|
||||
|
||||
fn with_str_writer(f: |&mut io::Writer|) -> string::String {
|
||||
fn with_str_writer<F>(f: F) -> string::String where F: FnOnce(&mut io::Writer){
|
||||
use std::str;
|
||||
|
||||
let mut m = Vec::new();
|
||||
|
||||
Reference in New Issue
Block a user