Run cargo fmt
This commit is contained in:
parent
15f794b7a8
commit
33a24b5821
2 changed files with 3 additions and 10 deletions
|
|
@ -73,9 +73,8 @@ impl Path {
|
||||||
|
|
||||||
pub(super) fn dashed(path: &Path, line_dash: LineDash<'_>) -> Path {
|
pub(super) fn dashed(path: &Path, line_dash: LineDash<'_>) -> Path {
|
||||||
Path::new(|builder| {
|
Path::new(|builder| {
|
||||||
let segments_odd = (line_dash.segments.len() % 2 == 1).then(|| {
|
let segments_odd = (line_dash.segments.len() % 2 == 1)
|
||||||
[line_dash.segments, line_dash.segments].concat()
|
.then(|| [line_dash.segments, line_dash.segments].concat());
|
||||||
});
|
|
||||||
|
|
||||||
let mut draw_line = false;
|
let mut draw_line = false;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -113,13 +113,7 @@ impl Atlas {
|
||||||
match &entry {
|
match &entry {
|
||||||
Entry::Contiguous(allocation) => {
|
Entry::Contiguous(allocation) => {
|
||||||
self.upload_allocation(
|
self.upload_allocation(
|
||||||
&buffer,
|
&buffer, width, height, padding, 0, allocation, encoder,
|
||||||
width,
|
|
||||||
height,
|
|
||||||
padding,
|
|
||||||
0,
|
|
||||||
allocation,
|
|
||||||
encoder,
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Entry::Fragmented { fragments, .. } => {
|
Entry::Fragmented { fragments, .. } => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue