1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-06-30 12:29:40 +02:00

Apply clippy::semicolon_if_nothing_returned (#2410)

This is for consistency: if a block returns `()`, and the last
expression of the block also returns `()`, then the final `;` can be
left out.

However, this is a little confusing (I was asked about this in a class
today) and it is inconsistent.

See

https://rust-lang.github.io/rust-clippy/master/index.html#/semicolon_if_nothing_returned
for details.
This commit is contained in:
Martin Geisler
2024-10-21 13:57:01 -04:00
committed by GitHub
parent 3d1339c546
commit ec6cb024e8
3 changed files with 11 additions and 11 deletions

View File

@ -29,5 +29,5 @@ fn main() {
);
binder::add_service(SERVICE_IDENTIFIER, birthday_service_binder.as_binder())
.expect("Failed to register service");
binder::ProcessState::join_thread_pool()
binder::ProcessState::join_thread_pool();
}

View File

@ -23,5 +23,5 @@ fn main() {
.file("entry.S")
.file("exceptions.S")
.file("idmap.S")
.compile("empty")
.compile("empty");
}