Skip to content

Commit

Permalink
fix(compile): no compiler warnings
Browse files Browse the repository at this point in the history
This involves disabling the dead-code lint, which is just to ease
debugging, currently there is a lot of dead code as 'hub' is never used.

Soon, this will change, so the lint will be enabled again.
  • Loading branch information
Byron committed Mar 11, 2015
1 parent efe56ad commit bfc3922
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/mako/lib.rs.mako
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
${lib.docs(c)}
</%block>
#![feature(core,io)]
// DEBUG !! TODO: Remove this
#![allow(dead_code)]


extern crate hyper;
extern crate "rustc-serialize" as rustc_serialize;
Expand Down
4 changes: 2 additions & 2 deletions src/mako/lib/mbuild.mako
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ ${'.' + action_name | indent_by(13)}(${action_args});
add_args = ', ' + stripped(add_args)
# end handle media params
action_fn = qualifier + 'fn ' + api.terms.action + type_params + ('(mut self%s)' % add_args) + ' -> ' + rtype + where
action_fn = qualifier + 'fn ' + api.terms.action + type_params + ('(self%s)' % add_args) + ' -> ' + rtype + where
field_params = [p for p in params if p.get('is_query_param', True)]
Expand Down Expand Up @@ -444,7 +444,7 @@ else {
% for item_name, item in p.info.iteritems():
/// * *${split_camelcase_s(item_name)}*: ${isinstance(item, (list, tuple)) and put_and(enclose_in("'", item)) or str(item)}
% endfor
pub fn ${api.terms.upload_action}${p.type.suffix}<${p.type.param}>(mut self, ${p.type.arg_name}: ${p.type.param}, size: u64, mime_type: mime::Mime) -> ${rtype}
pub fn ${api.terms.upload_action}${p.type.suffix}<${p.type.param}>(self, ${p.type.arg_name}: ${p.type.param}, size: u64, mime_type: mime::Mime) -> ${rtype}
where ${p.type.param}: ${p.type.where} {
self.${api.terms.action}(\
% for _ in range(0, loop.index):
Expand Down

0 comments on commit bfc3922

Please sign in to comment.