silverwolf-x's picture
download
raw
965 Bytes
use anyhow::Result;
use async_trait::async_trait;
use turbo_tasks::ResolvedVc;
use turbo_tasks_fs::FileSystemPath;
use turbopack_core::issue::{Issue, IssueSeverity, IssueStage, StyledString};
#[turbo_tasks::value(shared)]
pub(crate) struct NextFontIssue {
pub(crate) path: FileSystemPath,
pub(crate) title: ResolvedVc<StyledString>,
pub(crate) description: ResolvedVc<StyledString>,
pub(crate) severity: IssueSeverity,
}
#[async_trait]
#[turbo_tasks::value_impl]
impl Issue for NextFontIssue {
fn stage(&self) -> IssueStage {
IssueStage::Resolve
}
fn severity(&self) -> IssueSeverity {
self.severity
}
async fn file_path(&self) -> Result<FileSystemPath> {
Ok(self.path.clone())
}
async fn title(&self) -> Result<StyledString> {
self.title.owned().await
}
async fn description(&self) -> Result<Option<StyledString>> {
Ok(Some(self.description.owned().await?))
}
}

Xet Storage Details

Size:
965 Bytes
·
Xet hash:
08e85048b5dd1175209348ac525276ea65ef9904e6ce65698a3ca12def7f3270

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.