mirror of
https://github.com/rosenpass/rosenpass.git
synced 2026-02-27 22:13:12 -08:00
build: Fix clippy warnings in build.rs
This commit fixes the clippy warnings in `build.rs`, by making use of the `if let` language feature.
This commit is contained in:
8
build.rs
8
build.rs
@@ -21,13 +21,13 @@ fn generate_man() -> String {
|
|||||||
// This function is purposely stupid and redundant
|
// This function is purposely stupid and redundant
|
||||||
|
|
||||||
let man = render_man("mandoc", "./doc/rosenpass.1");
|
let man = render_man("mandoc", "./doc/rosenpass.1");
|
||||||
if man.is_ok() {
|
if let Ok(man) = man {
|
||||||
return man.unwrap();
|
return man;
|
||||||
}
|
}
|
||||||
|
|
||||||
let man = render_man("groff", "./doc/rosenpass.1");
|
let man = render_man("groff", "./doc/rosenpass.1");
|
||||||
if man.is_ok() {
|
if let Ok(man) = man {
|
||||||
return man.unwrap();
|
return man;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Link to online manual here
|
// TODO: Link to online manual here
|
||||||
|
|||||||
Reference in New Issue
Block a user