diff options
author | Klim Tsoutsman <32662194+tsoutsman@users.noreply.github.com> | 2021-08-24 23:04:32 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-24 23:04:32 +1000 |
commit | c4fec94c4cbad5e13efa88ab12c9a34e08ef9d35 (patch) | |
tree | a9b37c2c4711b500f3a5f4458ca0fc97d44a59e8 /examples | |
parent | e6629cd75bc481a701c9a0f8816d4e4eedf6bb2b (diff) |
Appease Clippy
Diffstat (limited to 'examples')
-rw-r--r-- | examples/nop-preprocessor.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/nop-preprocessor.rs b/examples/nop-preprocessor.rs index 38764207..486fd86d 100644 --- a/examples/nop-preprocessor.rs +++ b/examples/nop-preprocessor.rs @@ -37,7 +37,7 @@ fn handle_preprocessing(pre: &dyn Preprocessor) -> Result<(), Error> { let book_version = Version::parse(&ctx.mdbook_version)?; let version_req = VersionReq::parse(mdbook::MDBOOK_VERSION)?; - if version_req.matches(&book_version) != true { + if !version_req.matches(&book_version) { eprintln!( "Warning: The {} plugin was built against version {} of mdbook, \ but we're being called from version {}", @@ -55,7 +55,7 @@ fn handle_preprocessing(pre: &dyn Preprocessor) -> Result<(), Error> { fn handle_supports(pre: &dyn Preprocessor, sub_args: &ArgMatches) -> ! { let renderer = sub_args.value_of("renderer").expect("Required argument"); - let supported = pre.supports_renderer(&renderer); + let supported = pre.supports_renderer(renderer); // Signal whether the renderer is supported by exiting with 1 or 0. if supported { |