This commit is contained in:
parent
05c3e411f6
commit
bfde1974d4
@ -688,7 +688,6 @@ enum DownloadDecalError{
|
|||||||
ParseInt(std::num::ParseIntError),
|
ParseInt(std::num::ParseIntError),
|
||||||
Get(rbx_asset::cookie::GetError),
|
Get(rbx_asset::cookie::GetError),
|
||||||
LoadDom(LoadDomError),
|
LoadDom(LoadDomError),
|
||||||
FromUtf8(std::string::FromUtf8Error),
|
|
||||||
NoFirstInstance,
|
NoFirstInstance,
|
||||||
NoTextureProperty,
|
NoTextureProperty,
|
||||||
TexturePropertyInvalid,
|
TexturePropertyInvalid,
|
||||||
@ -766,7 +765,6 @@ async fn create_asset_medias(config:CreateAssetMediasConfig)->AResult<()>{
|
|||||||
asset_id:parse_result.map_err(DownloadDecalError::ParseInt)?,
|
asset_id:parse_result.map_err(DownloadDecalError::ParseInt)?,
|
||||||
version:None,
|
version:None,
|
||||||
}).await.map_err(DownloadDecalError::Get)?;
|
}).await.map_err(DownloadDecalError::Get)?;
|
||||||
println!("{}",String::from_utf8(file.clone()).map_err(DownloadDecalError::FromUtf8)?);
|
|
||||||
let dom=load_dom(std::io::Cursor::new(file)).map_err(DownloadDecalError::LoadDom)?;
|
let dom=load_dom(std::io::Cursor::new(file)).map_err(DownloadDecalError::LoadDom)?;
|
||||||
let instance=dom.get_by_ref(
|
let instance=dom.get_by_ref(
|
||||||
*dom.root().children().first().ok_or(DownloadDecalError::NoFirstInstance)?
|
*dom.root().children().first().ok_or(DownloadDecalError::NoFirstInstance)?
|
||||||
|
Loading…
Reference in New Issue
Block a user