Impl Default for AssetPath
This commit is contained in:
parent
a6403e743f
commit
e4deefae99
1 changed files with 2 additions and 2 deletions
|
@ -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<String>,
|
||||
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue