MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / pairing_address_value

Function pairing_address_value

packages/server/src/main.rs:2195–2203  ·  view source on GitHub ↗
(url: &str)

Source from the content-addressed store, hash-verified

2193}
2194
2195fn pairing_address_value(url: &str) -> String {
2196 let Ok(parsed) = url.parse::<http::Uri>() else {
2197 return url.to_owned();
2198 };
2199 let Some(authority) = parsed.authority() else {
2200 return url.to_owned();
2201 };
2202 authority.as_str().to_owned()
2203}
2204
2205fn render_qr_code(value: &str) -> anyhow::Result<String> {
2206 let code = QrCode::new(value.as_bytes()).context("generate pairing QR code")?;

Callers 2

simdeck_pair_urlFunction · 0.85
simdeck_open_linkFunction · 0.85

Calls 1

as_strMethod · 0.45

Tested by

no test coverage detected