Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed May 28, 2024
1 parent 4442b04 commit d1a6b45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions crates/turbo-tasks-fs/src/embed/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::{path::Path, sync::Arc};

use anyhow::{Context, Result};
use dunce::canonicalize;
use turbo_tasks::Vc;
use turbo_tasks::{RcStr, Vc};

use crate::{DiskFileSystem, File, FileContent, FileSystem};

Expand All @@ -27,7 +27,7 @@ pub async fn content_from_relative_path(
}

#[turbo_tasks::function]
pub async fn content_from_str(string: Arc<String>) -> Result<Vc<FileContent>> {
pub async fn content_from_str(string: RcStr) -> Result<Vc<FileContent>> {
Ok(File::from(string).into())
}

Expand Down
6 changes: 3 additions & 3 deletions crates/turbo-tasks-fs/src/embed/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::sync::Arc;

use anyhow::{bail, Result};
use include_dir::{Dir, DirEntry};
use turbo_tasks::{Completion, TransientInstance, ValueToString, Vc};
use turbo_tasks::{Completion, RcStr, TransientInstance, ValueToString, Vc};

use crate::{
DirectoryContent, DirectoryEntry, File, FileContent, FileMeta, FileSystem, FileSystemPath,
Expand All @@ -11,7 +11,7 @@ use crate::{

#[turbo_tasks::value(serialization = "none")]
pub struct EmbeddedFileSystem {
name: Arc<String>,
name: RcStr,
#[turbo_tasks(trace_ignore)]
dir: TransientInstance<&'static Dir<'static>>,
}
Expand All @@ -20,7 +20,7 @@ pub struct EmbeddedFileSystem {
impl EmbeddedFileSystem {
#[turbo_tasks::function]
pub(super) fn new(
name: Arc<String>,
name: RcStr,
dir: TransientInstance<&'static Dir<'static>>,
) -> Vc<EmbeddedFileSystem> {
EmbeddedFileSystem { name, dir }.cell()
Expand Down

0 comments on commit d1a6b45

Please sign in to comment.