Explain one occurence of extra braces around a block of code in tests

This commit is contained in:
Yuriy Dupyn 2024-02-01 13:30:59 +01:00
parent 83fd46b4f5
commit 5909df60b0

View file

@ -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();