fix(example): env::set_var is now marked as unsafe.

This commit is contained in:
Ryan Brue 2025-03-26 01:01:22 -05:00 committed by GitHub
parent 535b8080f7
commit 54c8527ced
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,8 +11,7 @@ async fn main() {
let listener = UnixListener::bind(&greetd_sock).unwrap();
println!("listening at {:?}", greetd_sock);
env::set_var("GREETD_SOCK", &greetd_sock);
unsafe { env::set_var("GREETD_SOCK", &greetd_sock) };
thread::spawn(|| {
cosmic_greeter::greeter::main().unwrap();
});