Explain one occurence of extra braces around a block of code in tests
This commit is contained in:
parent
83fd46b4f5
commit
5909df60b0
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue