Fix clippy warning about needlessly narrow parameter type

This commit is contained in:
Johannes Altmanninger
2025-04-02 01:18:19 +02:00
parent daa692a20b
commit 81f1ab75d0

View File

@@ -81,7 +81,7 @@
#[cfg(feature = "installable")]
// Disable for clippy because otherwise it would require sphinx
#[cfg(not(clippy))]
fn install(confirm: bool, dir: &PathBuf) -> bool {
fn install(confirm: bool, dir: &Path) -> bool {
use rust_embed::RustEmbed;
#[derive(RustEmbed)]
@@ -181,7 +181,7 @@ fn extract_embed<T: rust_embed::Embed>(dir: &Path) -> bool {
}
#[cfg(clippy)]
fn install(_confirm: bool, _dir: &std::path::PathBuf) -> bool {
fn install(_confirm: bool, _dir: &Path) -> bool {
unreachable!()
}