Skip to content

Commit 2e0eaee

Browse files
committed
doc and fmt corrections
1 parent b04b336 commit 2e0eaee

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/build.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,19 @@ impl<'a> BuildBuilder<'a> {
4747
/// # let sandbox = SandboxBuilder::new();
4848
/// let mut build_dir = workspace.build_dir("foo");
4949
/// 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")
5151
/// .run(|build| {
5252
/// build.cargo().args(&["test", "--all"]).run()?;
5353
/// Ok(())
54-
/// })?;
54+
/// })?;
5555
/// # Ok(())
5656
/// # }
5757
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+
});
5963
self
6064
}
6165

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ mod tools;
2929
mod utils;
3030
mod workspace;
3131

32-
pub use crate::build::{Build, BuildDirectory, BuildBuilder};
32+
pub use crate::build::{Build, BuildBuilder, BuildDirectory};
3333
pub use crate::crates::Crate;
3434
pub use crate::prepare::PrepareError;
3535
pub use crate::toolchain::Toolchain;

0 commit comments

Comments
 (0)