Skip to content

Commit 5d7543b

Browse files
author
Jorge Aparicio
committed
libgraphviz: use unboxed closures in LabelText methods
1 parent 04652b5 commit 5d7543b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libgraphviz/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ pub trait Labeller<'a,N,E> {
421421
}
422422

423423
impl<'a> LabelText<'a> {
424-
fn escape_char(c: char, f: |char|) {
424+
fn escape_char<F>(c: char, mut f: F) where F: FnMut(char) {
425425
match c {
426426
// not escaping \\, since Graphviz escString needs to
427427
// interpret backslashes; see EscStr above.

0 commit comments

Comments
 (0)