Skip to content

Commit

Permalink
fix(misc): whitespace and trait rename
Browse files Browse the repository at this point in the history
* `ResourceMethodsBuilder` -> `MethodsBuilder`. This is now precise
   enough. Previously it was just to similar to what's now a
   `CallBuilder`
* Fixed whitespace issue in `doit()`
  • Loading branch information
Byron committed Mar 23, 2015
1 parent 04f4c95 commit 6ad0c2e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/mako/lib.rs.mako
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ use std::io;
use std::fs;
use std::thread::sleep;

pub use cmn::{MultiPartReader, ToParts, MethodInfo, Result, CallBuilder, Hub, ReadSeek, Part, ResponseResult, RequestValue, NestedType, Delegate, DefaultDelegate, ResourceMethodsBuilder, Resource, JsonServerError};
pub use cmn::{MultiPartReader, ToParts, MethodInfo, Result, CallBuilder, Hub, ReadSeek, Part, ResponseResult, RequestValue, NestedType, Delegate, DefaultDelegate, MethodsBuilder, Resource, JsonServerError};


// ##############
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 @@ -744,9 +744,9 @@ else {
dlg.pre_request();
req.send()
</%block>
</%block>\
% if resumable_media_param:
}
}
% endif
};
Expand Down
2 changes: 1 addition & 1 deletion src/mako/lib/rbuild.mako
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub struct ${ThisType}
hub: &'a ${hub_type_name}${hub_type_params_s()},
}
impl${rb_params} ResourceMethodsBuilder for ${ThisType} {}
impl${rb_params} MethodsBuilder for ${ThisType} {}
## Builder Creators Methods ####################
impl${rb_params} ${ThisType} {
Expand Down
2 changes: 1 addition & 1 deletion src/rust/cmn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use serde;
pub trait Hub: MarkerTrait {}

/// Identifies types for building methods of a particular resource type
pub trait ResourceMethodsBuilder: MarkerTrait {}
pub trait MethodsBuilder: MarkerTrait {}

/// Identifies types which represent builders for a particular resource method
pub trait CallBuilder: MarkerTrait {}
Expand Down

0 comments on commit 6ad0c2e

Please sign in to comment.