mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-09 10:18: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:
@@ -5,7 +5,7 @@ pub fn parse_join(join: i32, miter_limit: f64) -> Join {
|
||||
0 => Join::Bevel,
|
||||
1 => Join::Miter(Some(miter_limit)),
|
||||
2 => Join::Round,
|
||||
_ => panic!("Unexpected Join value: '{}'", join),
|
||||
_ => panic!("Unexpected Join value: '{join}'"),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,6 +14,6 @@ pub fn parse_cap(cap: i32) -> Cap {
|
||||
0 => Cap::Butt,
|
||||
1 => Cap::Round,
|
||||
2 => Cap::Square,
|
||||
_ => panic!("Unexpected Cap value: '{}'", cap),
|
||||
_ => panic!("Unexpected Cap value: '{cap}'"),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user