1 parent ff4a99a commit 4c26bf7Copy full SHA for 4c26bf7
1 file changed
hypnoscript-cli/src/main.rs
@@ -464,7 +464,7 @@ fn handle_self_update(
464
// If both fail, install_prefix will be None, and the installer will use its default
465
// prefix (/usr/local/bin), which is the correct fallback behavior.
466
let install_prefix =
467
- install_prefix_from_metadata(&metadata).or_else(|| derive_prefix_from_binary());
+ install_prefix_from_metadata(&metadata).or_else(derive_prefix_from_binary);
468
469
let installer = match find_shared_installer(metadata.as_ref()) {
470
Some(path) => InstallerScript::shared(path),
0 commit comments