Mercurial > tablet-emu
diff src/state.rs @ 16:478cf2a7d577
Reformat with rustfmt.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 26 Aug 2021 19:45:30 +0200 |
parents | d103f7cca0bd |
children | 0bce7fe96937 |
line wrap: on
line diff
--- a/src/state.rs +++ b/src/state.rs @@ -14,11 +14,12 @@ // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <https://www.gnu.org/licenses/>. -use std::fs::File; - +use crate::uinput::{ + create_uinput_device, input_axis_new, input_key_new, input_misc_new, input_synchronize_new, +}; +use crate::{DEFAULT_HEIGHT, DEFAULT_WIDTH, MAX_X, MAX_Y}; use input_linux::{AbsoluteAxis, Key, MiscKind, SynchronizeKind, UInputHandle}; -use crate::{DEFAULT_WIDTH, DEFAULT_HEIGHT, MAX_X, MAX_Y}; -use crate::uinput::{create_uinput_device, input_axis_new, input_misc_new, input_key_new, input_synchronize_new}; +use std::fs::File; pub struct State { dev: UInputHandle<File>,