MCPcopy Create free account
hub / github.com/csskit/csskit / installed_version

Function installed_version

packages/csskit_zed/src/lib.rs:41–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39}
40
41fn installed_version() -> Option<String> {
42 let version = fs::read_to_string(VERSION_FILE).ok()?;
43 let version = version.trim();
44 if version.is_empty() {
45 None
46 } else {
47 Some(version.to_string())
48 }
49}
50
51struct CsskitExtension;
52

Callers 1

Calls 2

okMethod · 0.80
is_emptyMethod · 0.45

Tested by

no test coverage detected