summaryrefslogtreecommitdiff
path: root/src/watch.rs
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-04-12 01:24:01 +0200
committermo8it <mo8it@proton.me>2024-04-12 01:24:01 +0200
commit2a95a3e96644a0f769019204a518816c9f2e2aee (patch)
tree44a0f35cf3fc63d39346433af568451e501b4628 /src/watch.rs
parent1e3745ccdf5ca41ae47d4f4d8594e8070df200a5 (diff)
Deal with long strings
Diffstat (limited to 'src/watch.rs')
-rw-r--r--src/watch.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/watch.rs b/src/watch.rs
index 929275f..bfa0f88 100644
--- a/src/watch.rs
+++ b/src/watch.rs
@@ -89,10 +89,12 @@ pub fn watch(app_state: &mut AppState) -> Result<WatchExit> {
}
}
- watch_state.into_writer().write_all(b"
-We hope you're enjoying learning Rust!
-If you want to continue working on the exercises at a later point, you can simply run `rustlings` again.
-")?;
+ watch_state.into_writer().write_all(QUIT_MSG)?;
Ok(WatchExit::Shutdown)
}
+
+const QUIT_MSG: &[u8] = b"
+We hope you're enjoying learning Rust!
+If you want to continue working on the exercises at a later point, you can simply run `rustlings` again.
+";