fmt: remove unnecessary parentheses after return (fix #11423) (#11435)

This commit is contained in:
yuyi 2021-09-08 19:19:53 +08:00 committed by GitHub
parent bef3390f36
commit e5360e164a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 36 additions and 16 deletions

View file

@ -327,7 +327,7 @@ fn intersect(r Ray, spheres &Sphere, nspheres int) (bool, f64, int) {
id = i
}
}
return (t < inf), t, id
return t < inf, t, id
}
// some casual random function, try to avoid the 0