From b526d5c57539683414f18f4a82927779b2dff3c7 Mon Sep 17 00:00:00 2001 From: HTG-YT <39023054+HTG-YT@users.noreply.github.com> Date: Mon, 14 Jun 2021 09:42:23 +0800 Subject: [PATCH] move `rickroll` content into a file --- src/interpret.rs | 69 +----------------------------------------------- 1 file changed, 1 insertion(+), 68 deletions(-) diff --git a/src/interpret.rs b/src/interpret.rs index 3c6fc41..0730a25 100644 --- a/src/interpret.rs +++ b/src/interpret.rs @@ -306,74 +306,7 @@ impl ExecEnv { exit(random()); } StmtKind::Rickroll => { - // possibly move the entire rickroll string into a constant? ~~HTGAzureX1212. - stdout().write_all(b"We're no strangers to love -You know the rules and so do I -A full commitments what I'm thinking of -You wouldn't get this from another guy - -I just wanna tell you how I'm feeling -Gotta make you understand - -Never gonna give you up -Never gonna let you down -Never gonna run around and desert you -Never gonna make you cry -Never gonna say goodbye -Never gonna tell a lie and hurt you - -We've known each other for so long -Your heart's been aching but you're too shy to say it -Inside we both know what's been going on -We know the game and we're gonna play it - -And if you ask me how I'm feeling -Don't tell me you're too blind to see - -Never gonna give you up -Never gonna let you down -Never gonna run around and desert you -Never gonna make you cry -Never gonna say goodbye -Never gonna tell a lie and hurt you - -Never gonna give you up -Never gonna let you down -Never gonna run around and desert you -Never gonna make you cry -Never gonna say goodbye -Never gonna tell a lie and hurt you - -Never gonna give, never gonna give -(Give you up) - -We've known each other for so long -Your heart's been aching but you're too shy to say it -Inside we both know what's been going on -We know the game and we're gonna play it - -I just wanna tell you how I'm feeling -Gotta make you understand - -Never gonna give you up -Never gonna let you down -Never gonna run around and desert you -Never gonna make you cry -Never gonna say goodbye -Never gonna tell a lie and hurt you - -Never gonna give you up -Never gonna let you down -Never gonna run around and desert you -Never gonna make you cry -Never gonna say goodbye -Never gonna tell a lie and hurt you - -Never gonna give you up -Never gonna let you down -Never gonna run around and desert you -Never gonna make you cry -Never gonna say goodbye").expect("Failed to write to stdout") + stdout().write_all(include_str!("../resources/rickroll").as_bytes()).expect("Failed to write to stdout") } }