chore(lint): extend low-risk clippy cleanup batch
- normalize numeric literals (115_200) in hardware/peripheral config paths - remove test-only useless format! allocations in discord IDs - simplify closures and auto-deref in browser/http/rag/peripherals - keep behavior unchanged while reducing warning surface
This commit is contained in:
parent
4413790859
commit
abdf99cf8c
8 changed files with 12 additions and 14 deletions
|
|
@ -168,7 +168,7 @@ pub struct HardwareConfig {
|
|||
}
|
||||
|
||||
fn default_baud_rate() -> u32 {
|
||||
115200
|
||||
115_200
|
||||
}
|
||||
|
||||
impl HardwareConfig {
|
||||
|
|
@ -436,7 +436,7 @@ fn default_peripheral_transport() -> String {
|
|||
}
|
||||
|
||||
fn default_peripheral_baud() -> u32 {
|
||||
115200
|
||||
115_200
|
||||
}
|
||||
|
||||
impl Default for PeripheralsConfig {
|
||||
|
|
@ -2892,7 +2892,7 @@ default_temperature = 0.7
|
|||
assert!(b.board.is_empty());
|
||||
assert_eq!(b.transport, "serial");
|
||||
assert!(b.path.is_none());
|
||||
assert_eq!(b.baud, 115200);
|
||||
assert_eq!(b.baud, 115_200);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
@ -2903,7 +2903,7 @@ default_temperature = 0.7
|
|||
board: "nucleo-f401re".into(),
|
||||
transport: "serial".into(),
|
||||
path: Some("/dev/ttyACM0".into()),
|
||||
baud: 115200,
|
||||
baud: 115_200,
|
||||
}],
|
||||
datasheet_dir: None,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue