mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-02 09:31:13 +01:00
fix(compile): no compiler warnings
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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)]
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user