diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-03-23 09:54:22 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-23 09:54:22 -0400 |
commit | 53dac7451bbdd527aa91e01653b678547624fc39 (patch) | |
tree | c43dbc34fd4ada4249064aab2086ab64b276a460 /cli/lsp/cache.rs | |
parent | 5edcd9dd355483df6b9a8c34ca94f3f54d672b9e (diff) |
chore: remove all `pub(crate)`s from the cli crate (#14083)
Diffstat (limited to 'cli/lsp/cache.rs')
-rw-r--r-- | cli/lsp/cache.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/lsp/cache.rs b/cli/lsp/cache.rs index f94faa419..bdf9db607 100644 --- a/cli/lsp/cache.rs +++ b/cli/lsp/cache.rs @@ -35,7 +35,7 @@ type Request = ( /// A "server" that handles requests from the language server to cache modules /// in its own thread. #[derive(Debug)] -pub(crate) struct CacheServer(mpsc::UnboundedSender<Request>); +pub struct CacheServer(mpsc::UnboundedSender<Request>); impl CacheServer { pub async fn new( @@ -121,7 +121,7 @@ impl CacheServer { } /// Calculate a version for for a given path. -pub(crate) fn calculate_fs_version(path: &Path) -> Option<String> { +pub fn calculate_fs_version(path: &Path) -> Option<String> { let metadata = fs::metadata(path).ok()?; if let Ok(modified) = metadata.modified() { if let Ok(n) = modified.duration_since(SystemTime::UNIX_EPOCH) { @@ -146,7 +146,7 @@ fn parse_metadata( } #[derive(Debug, PartialEq, Eq, Hash)] -pub(crate) enum MetadataKey { +pub enum MetadataKey { /// Represent the `x-deno-warning` header associated with the document Warning, } @@ -158,7 +158,7 @@ struct Metadata { } #[derive(Debug, Default, Clone)] -pub(crate) struct CacheMetadata { +pub struct CacheMetadata { cache: http_cache::HttpCache, metadata: Arc<Mutex<HashMap<ModuleSpecifier, Metadata>>>, } |