mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-10 22:20:56 +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:
@@ -25,7 +25,7 @@ pub const TEXT_OFFSET_X: f64 = 5.;
|
||||
pub const TEXT_OFFSET_Y: f64 = 193.;
|
||||
|
||||
pub fn wrap_svg_tag(contents: String) -> String {
|
||||
format!("{}{}{}", SVG_OPEN_TAG, contents, SVG_CLOSE_TAG)
|
||||
format!("{SVG_OPEN_TAG}{contents}{SVG_CLOSE_TAG}")
|
||||
}
|
||||
|
||||
/// Helper function to create an SVG text entity.
|
||||
|
||||
Reference in New Issue
Block a user