Avoid needless return
With recent updates Clippy got smarter and now sees that we (needlessly)
use "return" in a tail position. Remove "return" so that Clippy is happy.
I personally find this questionable but Clippy is the authority here.
@@ -53,12 +53,10 @@ fn get_themis() -> Library {
pkg_config.statik(true);
match pkg_config.probe("libthemis") {
- Ok(library) => {
- return Library {
+ Ok(library) => Library {
include_paths: library.include_paths,
link_paths: library.link_paths,
- };
- }
+ },
Err(error) => {
eprintln!(
"
