From 5909df60b0aa0a52f56051a2b102eb9770b1125a Mon Sep 17 00:00:00 2001 From: Yuriy Dupyn <2153100+omedusyo@users.noreply.github.com> Date: Thu, 1 Feb 2024 13:30:59 +0100 Subject: [PATCH] Explain one occurence of extra braces around a block of code in tests --- minisql/src/interpreter.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/minisql/src/interpreter.rs b/minisql/src/interpreter.rs index 89df2b2..e474673 100644 --- a/minisql/src/interpreter.rs +++ b/minisql/src/interpreter.rs @@ -574,8 +574,8 @@ pub fn example() { { { - // TODO: Why do I have to write these braces explicitely? Why doesn't Rust compiler - // "infer" them? + // HEY_BTW: Seems that there is some Rust inference feature still missing when it comes to + // ownership. That's why we put this block in braces. let _delete_response: Response = state .interpret(Delete(users_position, Some(Eq(id_column, id0.clone())))) .unwrap();