MCPcopy Create free account
hub / github.com/LaBatata101/sith-language-server / create

Method create

crates/ruff_python_resolver/src/cache.rs:14–22  ·  view source on GitHub ↗
(root: PathBuf, source_file: Option<&Path>, import_name: &str)

Source from the content-addressed store, hash-verified

12
13impl ImportResultCacheKey {
14 fn create(root: PathBuf, source_file: Option<&Path>, import_name: &str) -> Self {
15 Self(
16 root,
17 format!(
18 "{}-{import_name}",
19 source_file.unwrap_or(Path::new("")).display()
20 ),
21 )
22 }
23}
24
25#[derive(Debug, Default)]

Callers 1

init_tracingFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected