mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-30 07:48:12 +08:00
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:
@@ -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!();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user