mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
libserialize: use unboxed closures
This commit is contained in:
parent
95d0763707
commit
9b075bcf3f
@ -2680,7 +2680,7 @@ mod tests {
|
||||
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();
|
||||
|
Loading…
Reference in New Issue
Block a user