small func

This commit is contained in:
2023-09-13 23:36:56 +02:00
parent e6f143f3c7
commit 33373006e6
2 changed files with 7 additions and 2 deletions

View File

@@ -99,6 +99,11 @@ impl ComponentId {
// URL_SAFE because we cannot have slashes in the output
base64::engine::general_purpose::URL_SAFE.encode(id)
}
#[tracing::instrument]
fn selector(&self) -> String {
format!("#{}", self.html_id())
}
}
impl fmt::Display for ComponentId {