Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6ad0c2e

Browse files
committed
fix(misc): whitespace and trait rename
* `ResourceMethodsBuilder` -> `MethodsBuilder`. This is now precise enough. Previously it was just to similar to what's now a `CallBuilder` * Fixed whitespace issue in `doit()`
1 parent 04f4c95 commit 6ad0c2e

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/mako/lib.rs.mako

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ use std::io;
5252
use std::fs;
5353
use std::thread::sleep;
5454

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

5757

5858
// ##############

src/mako/lib/mbuild.mako

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -744,9 +744,9 @@ else {
744744
745745
dlg.pre_request();
746746
req.send()
747-
</%block>
747+
</%block>\
748748
% if resumable_media_param:
749-
}
749+
}
750750
% endif
751751
};
752752

src/mako/lib/rbuild.mako

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pub struct ${ThisType}
4848
hub: &'a ${hub_type_name}${hub_type_params_s()},
4949
}
5050
51-
impl${rb_params} ResourceMethodsBuilder for ${ThisType} {}
51+
impl${rb_params} MethodsBuilder for ${ThisType} {}
5252
5353
## Builder Creators Methods ####################
5454
impl${rb_params} ${ThisType} {

src/rust/cmn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use serde;
2222
pub trait Hub: MarkerTrait {}
2323

2424
/// Identifies types for building methods of a particular resource type
25-
pub trait ResourceMethodsBuilder: MarkerTrait {}
25+
pub trait MethodsBuilder: MarkerTrait {}
2626

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

0 commit comments

Comments
 (0)