1
0
Fork 0

remove unnecessary dependencies (log, libc)

This commit is contained in:
micah 2020-12-05 18:44:41 -05:00 committed by glowcoil
parent db1725a33b
commit 08e56bd5ae
2 changed files with 1 additions and 3 deletions

View file

@ -14,7 +14,6 @@ edition = "2018"
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"
[dependencies] [dependencies]
log = "0.4.11"
keyboard-types = { version = "0.5.0", default-features = false } keyboard-types = { version = "0.5.0", default-features = false }
raw-window-handle = "0.3.3" raw-window-handle = "0.3.3"
rtrb = "0.1.1" rtrb = "0.1.1"
@ -24,7 +23,6 @@ static_assertions = "1.1.0"
xcb = { version = "0.9", features = ["thread", "xlib_xcb", "dri2"] } xcb = { version = "0.9", features = ["thread", "xlib_xcb", "dri2"] }
x11 = { version = "2.18", features = ["xlib", "xcursor"] } x11 = { version = "2.18", features = ["xlib", "xcursor"] }
xcb-util = { version = "0.3", features = ["icccm"] } xcb-util = { version = "0.3", features = ["icccm"] }
libc = "0.2"
nix = "0.18" nix = "0.18"
[target.'cfg(target_os="windows")'.dependencies] [target.'cfg(target_os="windows")'.dependencies]

View file

@ -82,7 +82,7 @@ impl XcbConnection {
addr: std::ptr::null_mut(), addr: std::ptr::null_mut(),
}; };
let mut value_type: *mut libc::c_char = std::ptr::null_mut(); let mut value_type: *mut std::os::raw::c_char = std::ptr::null_mut();
let name_c_str = CString::new("Xft.dpi").unwrap(); let name_c_str = CString::new("Xft.dpi").unwrap();
let c_str = CString::new("Xft.Dpi").unwrap(); let c_str = CString::new("Xft.Dpi").unwrap();