Make declaration order equal usage order

timeout_old
Tassilo Horn 3 years ago
parent 71a9c390e7
commit c162a38220
  1. 8
      Cargo.lock
  2. 2
      src/util.rs

8
Cargo.lock generated

@ -96,9 +96,9 @@ dependencies = [
[[package]]
name = "hashbrown"
version = "0.9.1"
version = "0.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d7afe4a420e3fe79967a00898cc1f4db7c8a49a9333a29f8a4bd76a253d5cd04"
checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e"
[[package]]
name = "heck"
@ -120,9 +120,9 @@ dependencies = [
[[package]]
name = "indexmap"
version = "1.6.2"
version = "1.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "824845a0bf897a9042383849b02c1bc219c2383772efcd5c6f9766fa4b81aef3"
checksum = "bc633605454125dec4b66843673f01c7df2b89479b32e0ed634e43a91cff62a5"
dependencies = [
"autocfg",
"hashbrown",

@ -22,8 +22,8 @@ use std::io::Write;
use std::process as proc;
pub fn get_swayr_socket_path() -> String {
let wayland_display = std::env::var("WAYLAND_DISPLAY");
let xdg_runtime_dir = std::env::var("XDG_RUNTIME_DIR");
let wayland_display = std::env::var("WAYLAND_DISPLAY");
format!(
"{}/swayr-{}.sock",
match xdg_runtime_dir {

Loading…
Cancel
Save