Skip to content

Commit 633d48d

Browse files
committed
mk_graph: elide unnecessary lifetime in render_function
Remove the explicit lifetime parameter from `render_function` after rendered graph structures became fully owned and no longer borrow MIR data. This addresses Clippy's `needless_lifetimes` warning and simplifies the traversal API.
1 parent bbb4502 commit 633d48d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/mk_graph/traverse.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,11 @@ pub fn render_graph<B: GraphBuilder>(smir: &SmirJson, mut builder: B) -> B::Outp
134134

135135
/// Emit graph events for a single function body.
136136
/// Traverses blocks, CFG edges, and call edges without renderer-specific logic.
137-
fn render_function<'a>(
137+
fn render_function(
138138
ctx: &GraphContext,
139139
name: &str,
140140
symbol_name: &str,
141-
body: Option<&'a Body>,
141+
body: Option<&Body>,
142142
) -> RenderedFunction {
143143
let id = match body {
144144
Some(b) => format!("fn_{}_{}", short_name(name), hash_body(b)),

0 commit comments

Comments
 (0)