diff --git a/assetpath/src/lib.rs b/assetpath/src/lib.rs index 0a8839f..eb7f6ad 100644 --- a/assetpath/src/lib.rs +++ b/assetpath/src/lib.rs @@ -1,7 +1,7 @@ use serde::{Deserialize, Serialize}; use std::{fmt::Display, path::Path, str::FromStr}; -#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, Hash)] +#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, Hash, Default)] pub struct AssetPath { #[serde(skip)] prefix: Option, @@ -10,7 +10,7 @@ pub struct AssetPath { } impl AssetPath { - pub const fn default() -> Self { + pub const fn new() -> Self { Self { prefix: None, path: String::new(),