Tell rustfmt to skip the list of node creators

parent 53dca862
......@@ -34,6 +34,7 @@ type NodeCreateFn = unsafe extern "C" fn(*const libc::c_char, *const RsvgNode) -
lazy_static! {
// Lines in comments are elements that we don't support.
#[cfg_attr(rustfmt, rustfmt_skip)]
static ref NODE_CREATORS: HashMap<&'static str, (bool, NodeCreateFn)> = {
let mut h = HashMap::new();
h.insert("a", (true, rsvg_node_link_new as NodeCreateFn));
......@@ -147,4 +148,4 @@ pub extern "C" fn rsvg_load_new_node(
*supports_class_attribute = creator.0.to_glib();
creator.1(_name, parent)
}
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment