Browse Source

Meilleur formatage du code.

Paul Florence 1 year ago
parent
commit
526cfef5b8

+ 1
- 0
.rustfmt.toml View File

@@ -0,0 +1 @@
1
+reorder_imported_names = true

+ 1
- 1
robot_core/src/communication.rs View File

@@ -5,7 +5,7 @@ use std::sync::Mutex;
5 5
 use std::sync::atomic::AtomicBool;
6 6
 use std::sync::Arc;
7 7
 use std::sync::atomic::Ordering;
8
-use std::sync::mpsc::{channel, Receiver, Sender};
8
+use std::sync::mpsc::{Receiver, Sender, channel};
9 9
 use std::io::{Read, Write};
10 10
 use std::io::Result as IoResult;
11 11
 use std::thread;

+ 1
- 1
robot_core/src/lib.rs View File

@@ -21,6 +21,6 @@ mod communication;
21 21
 
22 22
 mod modules;
23 23
 
24
-pub use communication::{StandardStream, ConnectionBuilder};
24
+pub use communication::{ConnectionBuilder, StandardStream};
25 25
 pub use trame::Trame;
26 26
 pub use modules::{StandardModule, TrameHandler};

+ 1
- 1
robot_debugger/src/connector.rs View File

@@ -8,7 +8,7 @@ use std::net::TcpStream;
8 8
 
9 9
 use serialport;
10 10
 
11
-use gtk::{ComboBoxText, ComboBoxTextExt, ComboBoxExt};
11
+use gtk::{ComboBoxExt, ComboBoxText, ComboBoxTextExt};
12 12
 
13 13
 #[derive(Default)]
14 14
 pub struct ConnectionAnalyzer {

+ 4
- 4
robot_debugger/src/main.rs View File

@@ -22,14 +22,14 @@ use std::cell::RefCell;
22 22
 use std::fmt::Display;
23 23
 use std::sync::atomic::{AtomicBool, Ordering};
24 24
 use std::rc::Rc;
25
-use std::time::{SystemTime, UNIX_EPOCH, Duration};
25
+use std::time::{Duration, SystemTime, UNIX_EPOCH};
26 26
 
27 27
 use slog::{Drain, Logger, PushFnValue, PushFnValueSerializer, Record};
28 28
 
29 29
 use gtk::prelude::*;
30
-use gtk::{ListStoreExtManual, ButtonExt, Window, Button, ListStore, ComboBoxText, Builder,
31
-          IconSize, MessageDialog, DialogFlags, ButtonsType, MessageType, SpinButton, Image,
32
-          Label, Entry, TreeView, ToggleButton};
30
+use gtk::{Builder, Button, ButtonExt, ButtonsType, ComboBoxText, DialogFlags, Entry, IconSize,
31
+          Image, Label, ListStore, ListStoreExtManual, MessageDialog, MessageType, SpinButton,
32
+          ToggleButton, TreeView, Window};
33 33
 
34 34
 use robot_core::{StandardStream, Trame};
35 35
 

Loading…
Cancel
Save