Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
IceSentry committed Jan 26, 2024
1 parent 56bb90b commit 9d75f78
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
5 changes: 2 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![allow(clippy::type_complexity)]
#![allow(clippy::too_many_arguments)]

use bevy::{prelude::*, asset::embedded_asset};
use bevy::{asset::embedded_asset, prelude::*};
use material::PolylineMaterialPlugin;
use polyline::{PolylineBasePlugin, PolylineRenderPlugin};

Expand All @@ -20,8 +20,7 @@ impl Plugin for PolylinePlugin {
#[cfg(all(target_family = "windows"))]

Check failure on line 20 in src/lib.rs

View workflow job for this annotation

GitHub Actions / CI

unneeded sub `cfg` when there is only one condition
embedded_asset!(app, "src\\", "shaders\\polyline.wgsl");
#[cfg(any(not(target_family = "windows")))]

Check failure on line 22 in src/lib.rs

View workflow job for this annotation

GitHub Actions / CI

unneeded sub `cfg` when there is only one condition
embedded_asset!(app, "src/","shaders/polyline.wgsl");

embedded_asset!(app, "src/", "shaders/polyline.wgsl");

app.add_plugins((
PolylineBasePlugin,
Expand Down
6 changes: 3 additions & 3 deletions src/material.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::polyline::{
DrawPolyline, PolylinePipeline, PolylinePipelineKey, PolylineUniform,
PolylineViewBindGroup, SetPolylineBindGroup,
};
DrawPolyline, PolylinePipeline, PolylinePipelineKey, PolylineUniform, PolylineViewBindGroup,
SetPolylineBindGroup,
};

use bevy::{
core_pipeline::core_3d::{AlphaMask3d, Opaque3d, Transparent3d},
Expand Down
3 changes: 2 additions & 1 deletion src/polyline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,8 @@ pub fn prepare_polyline_bind_group(
binding: 0,
resource: binding,
}],
)});
),
});
}
}

Expand Down

0 comments on commit 9d75f78

Please sign in to comment.