From c162a382206e4e709e910a74db171d9758b6a08f Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Thu, 1 Jul 2021 14:37:47 +0200 Subject: [PATCH] Make declaration order equal usage order --- Cargo.lock | 8 ++++---- src/util.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1981bb6..4f31937 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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", diff --git a/src/util.rs b/src/util.rs index bab5592..053c6a7 100644 --- a/src/util.rs +++ b/src/util.rs @@ -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 {