Skip to content

Commit 75218b0

Browse files
committed
fixed yellow lines
1 parent 0141177 commit 75218b0

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

examples/basic.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use bevy::{log::LogPlugin, prelude::*};
2-
use bevy_ecs::error::info;
32
use bevy_pkv::PkvStore;
43
use serde::{Deserialize, Serialize};
54

examples/migration.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,13 @@ fn existing_user_default_quest() -> Quest {
2929
Quest::SeekHolyGrail
3030
}
3131

32-
#[derive(Serialize, Deserialize, Debug)]
32+
#[derive(Serialize, Deserialize, Debug, Default)]
3333
enum Quest {
34+
#[default]
3435
Tutorial,
3536
SeekHolyGrail,
3637
}
3738

38-
impl Default for Quest {
39-
fn default() -> Self {
40-
Quest::Tutorial
41-
}
42-
}
43-
4439
fn setup(mut pkv: ResMut<PkvStore>) {
4540
// Let's pretend someone has registered with the UserV1 definition
4641
let user_v1 = UserV1 {

0 commit comments

Comments
 (0)