From 2a630c7b7e0ad3440e1fc7e1ba1a72c3bdb72f39 Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Wed, 11 Jan 2023 09:11:49 +0300 Subject: [PATCH] rename --- src/find.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/find.rs b/src/find.rs index f9a2935..a616050 100644 --- a/src/find.rs +++ b/src/find.rs @@ -143,11 +143,11 @@ fn finds_with_closure() -> Result<()> { g.find( 1, "first.second/abc", - LambdaRelay::new(|v, head, tail| { - if v == 1 && !tail.is_empty() { + LambdaRelay::new(|v, a, b| { + if v == 1 && !b.is_empty() { panic!(); } - if v == 2 && head == "second" && tail == "abc" { + if v == 2 && a == "second" && b == "abc" { Ok("something_else".to_string()) } else { Ok("".to_string())