Skip to content

Commit 9b075bc

Browse files
author
Jorge Aparicio
committed
libserialize: use unboxed closures
1 parent 95d0763 commit 9b075bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libserialize/json.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2680,7 +2680,7 @@ mod tests {
26802680
from_str(a.to_pretty_str().as_slice()).unwrap());
26812681
}
26822682

2683-
fn with_str_writer(f: |&mut io::Writer|) -> string::String {
2683+
fn with_str_writer<F>(f: F) -> string::String where F: FnOnce(&mut io::Writer){
26842684
use std::str;
26852685

26862686
let mut m = Vec::new();

0 commit comments

Comments
 (0)