mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-27 16:51:15 -03:00
Fix clippy warning about needlessly narrow parameter type
This commit is contained in:
@@ -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!()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user