diff options
-rw-r--r-- | src/ast.rs | 2 | ||||
-rw-r--r-- | src/bindings.rs | 2 | ||||
-rw-r--r-- | subplotlib/build.rs | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -371,7 +371,7 @@ impl YamlMetadata { fn mapping_to_pandoc(mapping: &Mapping) -> MetaValue { let mut map = Map::new(); for (key, value) in mapping.iter() { - let key = if let MetaValue::MetaString(s) = value_to_pandoc(&key) { + let key = if let MetaValue::MetaString(s) = value_to_pandoc(key) { s } else { panic!("key not a string: {:?}", key); diff --git a/src/bindings.rs b/src/bindings.rs index 8e3531b..98379c9 100644 --- a/src/bindings.rs +++ b/src/bindings.rs @@ -787,7 +787,7 @@ mod test_bindings { lazy_static! { static ref KIND_PATTERNS: HashMap<CaptureType, Regex> = { let mut map = HashMap::new(); - for ty in (&[ + for ty in ([ CaptureType::Word, CaptureType::Text, CaptureType::Int, diff --git a/subplotlib/build.rs b/subplotlib/build.rs index e5f8917..77e493a 100644 --- a/subplotlib/build.rs +++ b/subplotlib/build.rs @@ -22,7 +22,7 @@ fn gen_tests() { .chain(glob("../tests/subplots/common/*.subplot").expect("failed to find common subplots")); for entry in subplots { let entry = entry.expect("failed to get subplot dir entry in subplotlib"); - let mut inc = tests.join(&entry.file_name().unwrap()); + let mut inc = tests.join(entry.file_name().unwrap()); inc.set_extension("rs"); if !inc.exists() { panic!("missing include file: {}", inc.display()); |