cleanup
This commit is contained in:
parent
4ef08b7df0
commit
48e06917de
@ -9,9 +9,7 @@ use bevy_reflect::{Reflect, ReflectDeserialize, ReflectSerialize};
|
|||||||
use core::{
|
use core::{
|
||||||
fmt::{Debug, Display},
|
fmt::{Debug, Display},
|
||||||
hash::Hash,
|
hash::Hash,
|
||||||
ops::Deref,
|
|
||||||
};
|
};
|
||||||
use itertools::Itertools;
|
|
||||||
use serde::{de::Visitor, Deserialize, Serialize};
|
use serde::{de::Visitor, Deserialize, Serialize};
|
||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
use thiserror::Error;
|
use thiserror::Error;
|
||||||
@ -365,7 +363,7 @@ impl<'a> AssetPath<'a> {
|
|||||||
if self.path.as_ref() == "/" || self.path.starts_with('#') || self.path.is_empty() {
|
if self.path.as_ref() == "/" || self.path.starts_with('#') || self.path.is_empty() {
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
let mut path: alloc::vec::Vec<_> = self.path_components().map(|s| s.to_string()).collect();
|
let mut path: Vec<_> = self.path_components().map(|s| s.to_string()).collect();
|
||||||
path.pop();
|
path.pop();
|
||||||
let path = path.join("/");
|
let path = path.join("/");
|
||||||
Some(AssetPath {
|
Some(AssetPath {
|
||||||
|
Loading…
Reference in New Issue
Block a user