Skip to content

Commit

Permalink
Make clippy happy (#17)
Browse files Browse the repository at this point in the history
* Make clippy happy

* Add semi-empty lib.rs

* Make non-GPU CI happy

* Fix merge queue
  • Loading branch information
janhohenheim authored Sep 19, 2024
1 parent eaea419 commit f767f09
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 12 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: CI

on:
push:
branches: [main]
merge_group:
pull_request:
branches: [main]
push:
branches:
- main
- release-*

env:
CARGO_TERM_COLOR: always
Expand Down
17 changes: 17 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
use bevy::prelude::*;

pub struct EditorPlugin;

impl Plugin for EditorPlugin {
fn build(&self, _app: &mut App) {}
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
fn can_add_plugin() {
App::new().add_plugins((MinimalPlugins, EditorPlugin));
}
}
11 changes: 2 additions & 9 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
use bevy::prelude::*;
use bevy_editor_prototypes::EditorPlugin;

fn main() -> AppExit {
App::new().add_plugins(DefaultPlugins).run()
}

#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert!(true, "it works!");
}
App::new().add_plugins((DefaultPlugins, EditorPlugin)).run()
}

0 comments on commit f767f09

Please sign in to comment.