MCPcopy Create free account
hub / github.com/Stranger6667/css-inline / parse_url

Function parse_url

bindings/python/src/lib.rs:67–73  ·  view source on GitHub ↗
(url: Option<String>)

Source from the content-addressed store, hash-verified

65}
66
67fn parse_url(url: Option<String>) -> PyResult<Option<rust_inline::Url>> {
68 Ok(if let Some(url) = url {
69 Some(rust_inline::Url::parse(url.as_str()).map_err(|error| UrlError { error, url })?)
70 } else {
71 None
72 })
73}
74
75/// StylesheetCache(size=8)
76///

Callers

nothing calls this directly

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected