fix(example): env::set_var is now marked as unsafe.
This commit is contained in:
parent
535b8080f7
commit
54c8527ced
1 changed files with 1 additions and 2 deletions
|
|
@ -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();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue