Skip to content

Commit

Permalink
remove typeuuid
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-reinhart authored and kgv committed Mar 16, 2024
1 parent 8c62112 commit ec6ee62
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ uuid = { version = "1.5.0", features = ["serde", "v4", "v5"] }
# globset = "0.4.13"

[dev-dependencies]
bevy = "0.12"
bevy = "0.13"
unic-langid = { version = "0.9.1", features = ["macros"] }
5 changes: 2 additions & 3 deletions src/assets/bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::ResourceAsset;
use bevy::{
asset::{io::Reader, AssetLoader, AsyncReadExt, LoadContext},
prelude::*,
reflect::{TypePath, TypeUuid},
reflect::TypePath,
utils::{
tracing::{self, instrument},
BoxedFuture,
Expand All @@ -20,8 +20,7 @@ use unic_langid::LanguageIdentifier;
/// [`FluentBundle`](fluent::bundle::FluentBundle) wrapper
///
/// Collection of [`FluentResource`]s for a single locale
#[derive(Asset, Clone, TypePath, TypeUuid)]
#[uuid = "929113bb-9187-44c3-87be-6027fc3b7ac5"]
#[derive(Asset, Clone, TypePath)]
pub struct BundleAsset(pub(crate) Arc<FluentBundle<Arc<FluentResource>, IntlLangMemoizer>>);

impl Deref for BundleAsset {
Expand Down
5 changes: 2 additions & 3 deletions src/assets/resource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use super::{Error, Result};
use bevy::{
asset::{io::Reader, AssetLoader, AsyncReadExt, LoadContext},
prelude::*,
reflect::{TypePath, TypeUuid},
reflect::TypePath,
utils::{
tracing::{self, instrument},
BoxedFuture,
Expand All @@ -14,8 +14,7 @@ use fluent::FluentResource;
use std::{ops::Deref, str, sync::Arc};

/// [`FluentResource`](fluent::FluentResource) wrapper
#[derive(Asset, Clone, Debug, TypePath, TypeUuid)]
#[uuid = "0b2367cb-fb4a-4746-a305-df98b26dddf6"]
#[derive(Asset, Clone, Debug, TypePath)]
pub struct ResourceAsset(pub(crate) Arc<FluentResource>);

impl Deref for ResourceAsset {
Expand Down

0 comments on commit ec6ee62

Please sign in to comment.