Mercurial > tablet-emu
comparison src/server.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 |
comparison
equal
deleted
inserted
replaced
15:d103f7cca0bd | 16:478cf2a7d577 |
---|---|
12 // GNU Affero General Public License for more details. | 12 // GNU Affero General Public License for more details. |
13 // | 13 // |
14 // You should have received a copy of the GNU Affero General Public License | 14 // You should have received a copy of the GNU Affero General Public License |
15 // along with this program. If not, see <https://www.gnu.org/licenses/>. | 15 // along with this program. If not, see <https://www.gnu.org/licenses/>. |
16 | 16 |
17 use std::net::UdpSocket; | |
18 use std::io::{self, ErrorKind}; | |
19 use crate::state::State; | 17 use crate::state::State; |
20 use bitflags::bitflags; | 18 use bitflags::bitflags; |
21 use input_linux::Key; | 19 use input_linux::Key; |
20 use std::io::{self, ErrorKind}; | |
21 use std::net::UdpSocket; | |
22 | 22 |
23 bitflags! { | 23 bitflags! { |
24 /// This is the memory layout of the buttons on the 3DS. | 24 /// This is the memory layout of the buttons on the 3DS. |
25 #[derive(Default)] | 25 #[derive(Default)] |
26 struct Buttons: u32 { | 26 struct Buttons: u32 { |