Skip to content

Commit 54f4723

Browse files
committed
nits
1 parent 128b520 commit 54f4723

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

crates/anodized-core/src/instrument.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,7 @@ Instead, you likely need to place a `#[spec]` attribute on an enclosing trait or
146146
}
147147

148148
fn build_split_fn(is_impl: bool, sig: &mut Signature, body: &mut Block) -> Ident {
149-
let mangled_ident = Ident::new(
150-
&format!("__anodized_fn_split_{}", sig.ident),
151-
sig.ident.span(),
152-
);
149+
let mangled_ident = fns::make_split_fn_ident(&sig.ident);
153150

154151
Self::build_wrapper_fn_signature(sig);
155152

crates/anodized-core/src/instrument/fns.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ impl CheckSettings {
379379
}
380380
}
381381

382-
pub fn make_split_fn_ident(ident: &Ident) -> Ident {
382+
pub(crate) fn make_split_fn_ident(ident: &Ident) -> Ident {
383383
Ident::new(&format!("__anodized_fn_split_{ident}"), ident.span())
384384
}
385385

0 commit comments

Comments
 (0)