Skip to content

Commit f2fc0e6

Browse files
author
Jordan Maples
committed
remove lifetime
1 parent 4934ad1 commit f2fc0e6

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

  • diskann-benchmark-runner/src

diskann-benchmark-runner/src/app.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,11 @@ impl App {
200200
) -> anyhow::Result<()> {
201201
match &self.command {
202202
// If a named benchmark isn't given, then list the available benchmarks.
203-
Commands::Inputs { describe, schema, field } => {
203+
Commands::Inputs {
204+
describe,
205+
schema,
206+
field,
207+
} => {
204208
if let Some(describe) = describe {
205209
if let Some(input) = registry.input(describe) {
206210
if *schema || field.is_some() {
@@ -467,7 +471,7 @@ impl App {
467471

468472
/// Walk a dotted path (e.g. "build.start_point_strategy") into a JSON value,
469473
/// descending into object fields at each segment.
470-
fn extract_path<'a>(value: &'a serde_json::Value, path: &str) -> Option<serde_json::Value> {
474+
fn extract_path(value: &serde_json::Value, path: &str) -> Option<serde_json::Value> {
471475
let mut current = value;
472476
// The example JSON wraps in {"tag": ..., "content": {...}} — try "content" first.
473477
if let Some(content) = current.get("content") {

0 commit comments

Comments
 (0)