summaryrefslogtreecommitdiff
path: root/src/init.rs
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2025-07-04 23:17:25 +0200
committermo8it <mo8it@proton.me>2025-07-04 23:22:05 +0200
commit1a633e275761604c8225839e79c139c90d59bfea (patch)
treeb6d117f09e7f9d8c4d972684c192a77d441d3748 /src/init.rs
parent9fecdba101a60dafecd0754cb1276dacf489a539 (diff)
Split lines after newline
Diffstat (limited to 'src/init.rs')
-rw-r--r--src/init.rs12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/init.rs b/src/init.rs
index a60fba7..8cb6ac5 100644
--- a/src/init.rs
+++ b/src/init.rs
@@ -58,11 +58,13 @@ pub fn init() -> Result<()> {
&& !workspace_manifest_content.contains("workspace.")
{
bail!(
- "The current directory is already part of a Cargo project.\nPlease initialize Rustlings in a different directory"
+ "The current directory is already part of a Cargo project.\n\
+ Please initialize Rustlings in a different directory"
);
}
- stdout.write_all(b"This command will create the directory `rustlings/` as a member of this Cargo workspace.\nPress ENTER to continue ")?;
+ stdout.write_all(b"This command will create the directory `rustlings/` as a member of this Cargo workspace.\n\
+ Press ENTER to continue ")?;
press_enter_prompt(&mut stdout)?;
// Make sure "rustlings" is added to `workspace.members` by making
@@ -78,7 +80,8 @@ pub fn init() -> Result<()> {
.status()?;
if !status.success() {
bail!(
- "Failed to initialize a new Cargo workspace member.\nPlease initialize Rustlings in a different directory"
+ "Failed to initialize a new Cargo workspace member.\n\
+ Please initialize Rustlings in a different directory"
);
}
@@ -87,7 +90,8 @@ pub fn init() -> Result<()> {
.context("Failed to remove the temporary directory `rustlings/`")?;
init_git = false;
} else {
- stdout.write_all(b"This command will create the directory `rustlings/` which will contain the exercises.\nPress ENTER to continue ")?;
+ stdout.write_all(b"This command will create the directory `rustlings/` which will contain the exercises.\n\
+ Press ENTER to continue ")?;
press_enter_prompt(&mut stdout)?;
}