A few minor lints and docs (#1436)

* A few minor lints and docs

* Added required packages to compile on Debian-style linux
* Inlined some format args, and removed some `&` in args (they cause about 6% slowdown that compiler cannot inline)
* a few spelling mistakes

* fix fmt
This commit is contained in:
Yuri Astrakhan
2023-10-18 23:33:10 -07:00
committed by GitHub
parent 67edac4aca
commit 3d4e3a74e5
51 changed files with 140 additions and 158 deletions
+3 -3
View File
@@ -175,7 +175,7 @@ impl Dispatcher {
),
);
} else {
warn!("Called ToolMessage without an active document.\nGot {:?}", message);
warn!("Called ToolMessage without an active document.\nGot {message:?}");
}
}
Workspace(message) => {
@@ -518,7 +518,7 @@ mod test {
paths.iter().map(|layer| layer.to_vec()).collect::<Vec<_>>()
}
let sorted_layers = map_to_vec(editor.dispatcher.message_handlers.portfolio_message_handler.active_document().unwrap().all_layers_sorted());
println!("Sorted layers: {:?}", sorted_layers);
println!("Sorted layers: {sorted_layers:?}");
let verify_order = |handler: &mut DocumentMessageHandler| {
(
@@ -562,7 +562,7 @@ mod test {
println!();
println!("DisplayDialogError details:");
println!();
println!("Description: {}", value);
println!("Description: {value}");
println!("-------------------------------------------------");
println!();