libgraphviz: use unboxed closures in LabelText
methods
This commit is contained in:
parent
04652b57e5
commit
5d7543b6ba
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue