summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorliv <mokou@fastmail.com>2023-08-28 13:38:21 +0200
committerGitHub <noreply@github.com>2023-08-28 13:38:21 +0200
commitd79984dbda5cab0da778d2af27239e25e5f084a1 (patch)
tree416fff9cd8ad5b3bc2b1a48e4d56ed5321b37e7d /src/main.rs
parentc2eaa8f0192ac49ef4d224dac82d3130299a7618 (diff)
parent571bab20c1136adf1443b0fc1778341e923e06e5 (diff)
Merge pull request #1637 from mo8it/fix-warnings
Run clippy --fix
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main.rs b/src/main.rs
index 0a9af2e..1a15086 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -169,7 +169,7 @@ fn main() {
let filter_cond = filters
.split(',')
.filter(|f| !f.trim().is_empty())
- .any(|f| e.name.contains(&f) || fname.contains(&f));
+ .any(|f| e.name.contains(f) || fname.contains(f));
let status = if e.looks_done() {
exercises_done += 1;
"Done"
@@ -429,7 +429,7 @@ fn watch(
fn rustc_exists() -> bool {
Command::new("rustc")
- .args(&["--version"])
+ .args(["--version"])
.stdout(Stdio::null())
.spawn()
.and_then(|mut child| child.wait())
@@ -465,7 +465,7 @@ started, here's a couple of notes about how Rustlings operates:
Got all that? Great! To get started, run `rustlings watch` in order to get the first
exercise. Make sure to have your editor open!"#;
-const FENISH_LINE: &str = r#"+----------------------------------------------------+
+const FENISH_LINE: &str = r"+----------------------------------------------------+
| You made it to the Fe-nish line! |
+-------------------------- ------------------------+
\\/
@@ -490,12 +490,12 @@ If you noticed any issues, please don't hesitate to report them to our repo.
You can also contribute your own exercises to help the greater community!
Before reporting an issue or contributing, please read our guidelines:
-https://github.com/rust-lang/rustlings/blob/main/CONTRIBUTING.md"#;
+https://github.com/rust-lang/rustlings/blob/main/CONTRIBUTING.md";
-const WELCOME: &str = r#" welcome to...
+const WELCOME: &str = r" welcome to...
_ _ _
_ __ _ _ ___| |_| (_)_ __ __ _ ___
| '__| | | / __| __| | | '_ \ / _` / __|
| | | |_| \__ \ |_| | | | | | (_| \__ \
|_| \__,_|___/\__|_|_|_| |_|\__, |___/
- |___/"#;
+ |___/";