@@ -24,15 +24,15 @@ pub struct BuildDirectory {
24
24
}
25
25
26
26
/// Builder for configuring builds in a [`BuildDirectory`](struct.BuildDirectory.html).
27
- pub struct Builder < ' a > {
27
+ pub struct BuildBuilder < ' a > {
28
28
build_dir : & ' a mut BuildDirectory ,
29
29
toolchain : & ' a Toolchain ,
30
30
krate : & ' a Crate ,
31
31
sandbox : SandboxBuilder ,
32
32
patches : Vec < CratePatch > ,
33
33
}
34
34
35
- impl < ' a > Builder < ' a > {
35
+ impl < ' a > BuildBuilder < ' a > {
36
36
/// Add a patch to this build.
37
37
/// Patches get added to the crate's Cargo.toml in the `patch.crates-io` table.
38
38
/// # Example
@@ -54,8 +54,8 @@ impl<'a> Builder<'a> {
54
54
/// })?;
55
55
/// # Ok(())
56
56
/// # }
57
- pub fn patch_with_git ( mut self , name : String , uri : String , branch : String ) -> Self {
58
- self . patches . push ( CratePatch { name, uri, branch } ) ;
57
+ pub fn patch_with_git ( mut self , name : & str , uri : & str , branch : & str ) -> Self {
58
+ self . patches . push ( CratePatch { name : name . into ( ) , uri : uri . into ( ) , branch : branch . into ( ) } ) ;
59
59
self
60
60
}
61
61
@@ -122,8 +122,8 @@ impl BuildDirectory {
122
122
toolchain : & ' a Toolchain ,
123
123
krate : & ' a Crate ,
124
124
sandbox : SandboxBuilder ,
125
- ) -> Builder {
126
- Builder {
125
+ ) -> BuildBuilder {
126
+ BuildBuilder {
127
127
build_dir : self ,
128
128
toolchain,
129
129
krate,
0 commit comments