cargo fmt src/awesome/mod.rs
use wlroots;
+use awesome::lua::setup_lua;
use rlua::{self, LightUserData, Lua, Table};
use std::{env, mem, path::PathBuf};
use xcb::{xkb, Connection};
-use awesome::lua::setup_lua;
mod awesome;
mod button;
@@ -26,7 +26,7 @@ pub mod signal;
mod tag;
mod xproperty;
-pub use self::lua::{NEXT_LUA, LUA};
+pub use self::lua::{LUA, NEXT_LUA};
pub use self::drawin::{Drawin, DRAWINS_HANDLE};
pub use self::key::Key;
@@ -41,7 +41,8 @@ use compositor::Server;
pub const GLOBAL_SIGNALS: &'static str = "__awesome_global_signals";
pub const XCB_CONNECTION_HANDLE: &'static str = "__xcb_connection";
-/// Called from `wayland_glib_interface.c` after every call back into the wayland event loop.
+/// Called from `wayland_glib_interface.c` after every call back into the
+/// wayland event loop.
///
/// This restarts the Lua thread if there is a new one pending
#[no_mangle]
@@ -86,7 +87,8 @@ fn setup_awesome_path(lua: &Lua) -> rlua::Result<()> {
let mut path = package.get::<_, String>("path")?;
let mut cpath = package.get::<_, String>("cpath")?;
- for mut xdg_data_path in env::var("XDG_DATA_DIRS").unwrap_or("/usr/local/share:/usr/share".into())
+ for mut xdg_data_path in
+ env::var("XDG_DATA_DIRS").unwrap_or("/usr/local/share:/usr/share".into())
.split(':')
.map(PathBuf::from)
{
