Skip to content

Commit

Permalink
Disallow wildcard imports (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
evroon authored Sep 1, 2024
1 parent 9ec4457 commit dcf39f9
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,6 @@ bevy_panorbit_camera = "0.19.3"

[build-dependencies]
embed-resource = "1.8.0"

[lints.clippy]
wildcard_imports = "deny"
2 changes: 1 addition & 1 deletion src/simple_3d_scene/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mod system;
use bevy_egui::EguiPlugin;
use system::*;
use system::{simple_3d_scene, ui_system};

use bevy::prelude::*;

Expand Down
6 changes: 5 additions & 1 deletion src/terrain/hydrology_compute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ use bevy::{
extract_resource::ExtractResourcePlugin,
render_asset::RenderAssets,
render_graph::{Node, NodeRunError, RenderGraph, RenderGraphContext, RenderLabel},
render_resource::{binding_types::uniform_buffer, *},
render_resource::{
binding_types::uniform_buffer, AsBindGroup, BindGroup, BindGroupEntries,
BindGroupLayout, BindGroupLayoutEntries, CachedComputePipelineId, CachedPipelineState,
ComputePassDescriptor, ComputePipelineDescriptor, PipelineCache, ShaderStages,
},
renderer::{RenderContext, RenderDevice, RenderQueue},
texture::GpuImage,
Extract, Render, RenderApp, RenderSet,
Expand Down
2 changes: 1 addition & 1 deletion src/terrain/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mod mesh;
use mesh::*;
use mesh::{setup_low_poly_terrain, TerrainBuildConfig, TerrainShaderExtension};
mod hydrology_compute;
mod images;
mod ui;
Expand Down
5 changes: 4 additions & 1 deletion src/terrain/uniforms.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
use bevy::{
prelude::*,
render::{extract_resource::ExtractResource, render_resource::*},
render::{
extract_resource::ExtractResource,
render_resource::{AsBindGroup, ShaderType, UniformBuffer},
},
};

#[derive(Clone, Resource, ExtractResource, Reflect, ShaderType)]
Expand Down

0 comments on commit dcf39f9

Please sign in to comment.