summaryrefslogtreecommitdiff
path: root/library/src/text/shift.rs
diff options
context:
space:
mode:
authorSébastien d'Herbais de Thun <sebastien.d.herbais@gmail.com>2023-04-23 14:33:56 +0200
committerGitHub <noreply@github.com>2023-04-23 14:33:56 +0200
commit561ff979d574f496415c0499345d41da2e1f6e1e (patch)
tree037479ac000bd87a1cb2149e5389b28f08d24051 /library/src/text/shift.rs
parent2fbb14f712708188649181525813b3ac5a02e0fb (diff)
Add instrumentation (Part 1) (#761)
Diffstat (limited to 'library/src/text/shift.rs')
-rw-r--r--library/src/text/shift.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/src/text/shift.rs b/library/src/text/shift.rs
index 26978b87..4eac5897 100644
--- a/library/src/text/shift.rs
+++ b/library/src/text/shift.rs
@@ -45,6 +45,7 @@ pub struct SubElem {
}
impl Show for SubElem {
+ #[tracing::instrument(name = "SubElem::show", skip_all)]
fn show(&self, vt: &mut Vt, styles: StyleChain) -> SourceResult<Content> {
let body = self.body();
let mut transformed = None;
@@ -107,6 +108,7 @@ pub struct SuperElem {
}
impl Show for SuperElem {
+ #[tracing::instrument(name = "SuperElem::show", skip_all)]
fn show(&self, vt: &mut Vt, styles: StyleChain) -> SourceResult<Content> {
let body = self.body();
let mut transformed = None;