use std::{env, process};

fn main() {
    let token = match env::var("GITHUB_SWEEP_TOKEN") {
        Ok(val) => val,
        Err(e) => {
            println!("Error reading GITHUB_SWEEP_TOKEN environment variable: {}", e);
            process::exit(1)
        }
    };

    println!("{}", token);
}

fn main() {
    println!("Hello, world!");
}

--- 
+++ 
@@ -1,13 +1,3 @@
-use std::{env, process};
-
 fn main() {
-    let token = match env::var("GITHUB_SWEEP_TOKEN") {
-        Ok(val) => val,
-        Err(e) => {
-            println!("Error reading GITHUB_SWEEP_TOKEN environment variable: {}", e);
-            process::exit(1)
-        }
-    };
-
-    println!("{}", token);
+    println!("Hello, world!");
 }
Read token from environment variable
