Bustage fixes: compile on stable; avoid unused variable warning.
This commit is contained in:
parent
3dc68bcd38
commit
4fde4fe0a6
2 changed files with 10 additions and 4 deletions
|
@ -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) => {
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue