File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -47,15 +47,19 @@ impl<'a> BuildBuilder<'a> {
47
47
/// # let sandbox = SandboxBuilder::new();
48
48
/// let mut build_dir = workspace.build_dir("foo");
49
49
/// build_dir.build(&toolchain, &krate, sandbox)
50
- /// .patch_with_git("bar".into() , "https://github.com/foo/bar".into() , "baz".into() )
50
+ /// .patch_with_git("bar", "https://github.com/foo/bar", "baz")
51
51
/// .run(|build| {
52
52
/// build.cargo().args(&["test", "--all"]).run()?;
53
53
/// Ok(())
54
- /// })?;
54
+ /// })?;
55
55
/// # Ok(())
56
56
/// # }
57
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 ( ) } ) ;
58
+ self . patches . push ( CratePatch {
59
+ name : name. into ( ) ,
60
+ uri : uri. into ( ) ,
61
+ branch : branch. into ( ) ,
62
+ } ) ;
59
63
self
60
64
}
61
65
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ mod tools;
29
29
mod utils;
30
30
mod workspace;
31
31
32
- pub use crate :: build:: { Build , BuildDirectory , BuildBuilder } ;
32
+ pub use crate :: build:: { Build , BuildBuilder , BuildDirectory } ;
33
33
pub use crate :: crates:: Crate ;
34
34
pub use crate :: prepare:: PrepareError ;
35
35
pub use crate :: toolchain:: Toolchain ;
You can’t perform that action at this time.
0 commit comments