Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: simplify helloworld-tutorial (#1369)
- Remove the `hello_world` crate prefix, `HelloReply` is imported directly. - Remove useless calls to `into()`: error: useless conversion to the same type: `std::string::String` --> src/main.rs:18:22 | 18 | message: format!("Hello {}!", request.into_inner().name).into(), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `format!("Hello {}!", request.into_inner().name)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion = note: `-D clippy::useless-conversion` implied by `-D warnings` Co-authored-by: tottoto <tottotodev@gmail.com>
- Loading branch information