 efda7f3f9c
			
		
	
	
		efda7f3f9c
		
			
		
	
	
	
	
		
			
			Takes the first two commits from #15375 and adds suggestions from this comment: https://github.com/bevyengine/bevy/pull/15375#issuecomment-2366968300 See #15375 for more reasoning/motivation. ## Rebasing (rerunning) ```rust git switch simpler-lint-fixes git reset --hard main cargo fmt --all -- --unstable-features --config normalize_comments=true,imports_granularity=Crate cargo fmt --all git add --update git commit --message "rustfmt" cargo clippy --workspace --all-targets --all-features --fix cargo fmt --all -- --unstable-features --config normalize_comments=true,imports_granularity=Crate cargo fmt --all git add --update git commit --message "clippy" git cherry-pick e6c0b94f6795222310fb812fa5c4512661fc7887 ```
		
			
				
	
	
		
			15 lines
		
	
	
		
			371 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			371 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //! Create an application without winit (runs single time, no event loop).
 | |
| 
 | |
| use bevy::{prelude::*, winit::WinitPlugin};
 | |
| 
 | |
| fn main() {
 | |
|     App::new()
 | |
|         .add_plugins(DefaultPlugins.build().disable::<WinitPlugin>())
 | |
|         .add_systems(Update, setup_system)
 | |
|         .run();
 | |
| }
 | |
| 
 | |
| fn setup_system(mut commands: Commands) {
 | |
|     commands.spawn(Camera3dBundle::default());
 | |
| }
 |