Skip to content

Commit 559cb8f

Browse files
committed
fix(build): remove compiler warnings.
Also, a build issue was fixed when schemas were no objects. However, I think I will have to check this one anyway
1 parent bfc3922 commit 559cb8f

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/mako/lib.rs.mako

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ ${lib.docs(c)}
2525
#![feature(core,io)]
2626
// DEBUG !! TODO: Remove this
2727
#![allow(dead_code)]
28+
// We don't warn about this, as depending on the API, some data structures or facilities are never used.
29+
// Instead of pre-determining this, we just disable the lint. It's manually tuned to not have any
30+
// unused imports in fully featured APIs
31+
#![allow(unused_imports)]
2832

2933

3034
extern crate hyper;
@@ -40,9 +44,9 @@ use std::marker::PhantomData;
4044
use std::borrow::BorrowMut;
4145
use std::cell::RefCell;
4246
use std::default::Default;
47+
use std::collections::BTreeMap;
4348
use std::io;
4449
use std::fs;
45-
use std::collections::BTreeMap;
4650

4751
pub use cmn::{Hub, ReadSeek, Part, ResponseResult, RequestValue, NestedType, Delegate, DefaultDelegate};
4852

src/mako/lib/schema.mako

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
###################################################################################################################
88
<%def name="new(s, c)">\
99
<%
10-
assert s.type == "object"
1110
markers = schema_markers(s, c)
1211
%>\
1312
<%block filter="rust_doc_comment">\

0 commit comments

Comments
 (0)