Bustage fixes: compile on stable; avoid unused variable warning.

This commit is contained in:
Nick Alexander 2018-05-11 10:21:58 -07:00
parent 3dc68bcd38
commit 4fde4fe0a6
2 changed files with 10 additions and 4 deletions

View file

@ -207,7 +207,7 @@ fn symbolic_schema_to_triples(ident_map: &IdentMap, symbolic_schema: &Value) ->
for (ident, mp) in m { for (ident, mp) in m {
let ident = match ident { let ident = match ident {
&Value::Keyword(ref ident) => ident, &Value::Keyword(ref ident) => ident,
v => bail!(ErrorKind::BadBootstrapDefinition(format!("Expected namespaced keyword for ident but got '{:?}'", ident))), _ => bail!(ErrorKind::BadBootstrapDefinition(format!("Expected namespaced keyword for ident but got '{:?}'", ident))),
}; };
match *mp { match *mp {
Value::Map(ref mpp) => { Value::Map(ref mpp) => {

View file

@ -17,9 +17,15 @@ use std::cmp::{
use std::fmt; use std::fmt;
#[cfg(feature = "serde_support")] #[cfg(feature = "serde_support")]
use serde::{ use serde::de::{
de::{self, Deserialize, Deserializer}, self,
ser::{Serialize, Serializer} Deserialize,
Deserializer
};
#[cfg(feature = "serde_support")]
use serde::ser::{
Serialize,
Serializer,
}; };
// Data storage for both NamespaceableKeyword and NamespaceableSymbol. // Data storage for both NamespaceableKeyword and NamespaceableSymbol.