File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 1
- ## Welcome to Rustlings!
2
-
3
1
To get started, run ` rustlings verify ` in order to get the first exercise.
4
2
Make sure to have your editor open!
Original file line number Diff line number Diff line change @@ -32,13 +32,17 @@ fn main() {
32
32
let ss = SyntaxSet :: load_defaults_newlines ( ) ;
33
33
let ts = ThemeSet :: load_defaults ( ) ;
34
34
35
- println ! ( r#" _ _ _ "# ) ;
36
- println ! ( r#" _ __ _ _ ___| |_| (_)_ __ __ _ ___ "# ) ;
37
- println ! ( r#" | '__| | | / __| __| | | '_ \ / _` / __| "# ) ;
38
- println ! ( r#" | | | |_| \__ \ |_| | | | | | (_| \__ \ "# ) ;
39
- println ! ( r#" |_| \__,_|___/\__|_|_|_| |_|\__, |___/ "# ) ;
40
- println ! ( r#" |___/ "# ) ;
41
- println ! ( "" ) ;
35
+ if None == matches. subcommand_name ( ) {
36
+ println ! ( "" ) ;
37
+ println ! ( r#" welcome to... "# ) ;
38
+ println ! ( r#" _ _ _ "# ) ;
39
+ println ! ( r#" _ __ _ _ ___| |_| (_)_ __ __ _ ___ "# ) ;
40
+ println ! ( r#" | '__| | | / __| __| | | '_ \ / _` / __| "# ) ;
41
+ println ! ( r#" | | | |_| \__ \ |_| | | | | | (_| \__ \ "# ) ;
42
+ println ! ( r#" |_| \__,_|___/\__|_|_|_| |_|\__, |___/ "# ) ;
43
+ println ! ( r#" |___/ "# ) ;
44
+ println ! ( "" ) ;
45
+ }
42
46
43
47
if let Some ( matches) = matches. subcommand_matches ( "run" ) {
44
48
run ( matches. clone ( ) ) ;
You can’t perform that action at this time.
0 commit comments