Fix misc compile warnings (#11258)

This commit is contained in:
David
2019-11-14 00:01:21 +01:00
committed by Niklas Adolfsson
parent db1ea1dcd8
commit e194a2c6e3
6 changed files with 15 additions and 6 deletions

View File

@@ -41,7 +41,7 @@ fn check_hex(string: &str) -> Result<()> {
}
/// given a type and HashMap<String, Vec<FieldType>>
/// returns a HashSet of dependent types of the given type
fn build_dependencies<'a>(message_type: &'a str, message_types: &'a MessageTypes) -> Option<(HashSet<&'a str>)>
fn build_dependencies<'a>(message_type: &'a str, message_types: &'a MessageTypes) -> Option<HashSet<&'a str>>
{
if message_types.get(message_type).is_none() {
return None;