mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-30 22:38:11 +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:
@@ -8,7 +8,7 @@ use wasm_bindgen::prelude::*;
|
||||
|
||||
/// When a panic occurs, notify the user and log the error to the JS console before the backend dies
|
||||
pub fn panic_hook(info: &panic::PanicInfo) {
|
||||
error!("{}", info);
|
||||
error!("{info}");
|
||||
|
||||
JS_EDITOR_HANDLES.with(|instances| {
|
||||
instances
|
||||
@@ -68,7 +68,7 @@ impl log::Log for WasmLog {
|
||||
pub fn translate_key(name: &str) -> Key {
|
||||
use Key::*;
|
||||
|
||||
trace!("Key event received: {}", name);
|
||||
trace!("Key event received: {name}");
|
||||
|
||||
match name {
|
||||
// Writing system keys
|
||||
|
||||
Reference in New Issue
Block a user