libgraphviz: use unboxed closures in LabelText methods

This commit is contained in:
Jorge Aparicio 2014-12-06 12:28:18 -05:00
parent 04652b57e5
commit 5d7543b6ba

View file

@ -421,7 +421,7 @@ pub trait Labeller<'a,N,E> {
}
impl<'a> LabelText<'a> {
fn escape_char(c: char, f: |char|) {
fn escape_char<F>(c: char, mut f: F) where F: FnMut(char) {
match c {
// not escaping \\, since Graphviz escString needs to
// interpret backslashes; see EscStr above.