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,3 +1,13 @@
+use std::{env, process};
+
 fn main() {
-    println!("Hello, world!");
+    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);
 }
Read token from environment variable
