File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -185,15 +185,15 @@ pub enum NixInstaller {
185
185
/// The Determinate Systems installer
186
186
DetSys ( super :: detsys_installer:: DetSysNixInstaller ) ,
187
187
/// Either offical installer or from a different package manager
188
- Other ( PathBuf ) ,
188
+ Other ,
189
189
}
190
190
191
191
impl Display for NixInstaller {
192
192
fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
193
193
match self {
194
194
NixInstaller :: DetSys ( installer) => write ! ( f, "{}" , installer) ,
195
- NixInstaller :: Other ( nix_path ) => {
196
- write ! ( f, "Unknown installer for {}" , nix_path . display ( ) )
195
+ NixInstaller :: Other => {
196
+ write ! ( f, "Unknown installer" )
197
197
}
198
198
}
199
199
}
@@ -204,7 +204,7 @@ impl NixInstaller {
204
204
pub fn detect ( ) -> Result < Self , NixEnvError > {
205
205
match super :: detsys_installer:: DetSysNixInstaller :: detect ( ) ? {
206
206
Some ( installer) => Ok ( NixInstaller :: DetSys ( installer) ) ,
207
- None => Ok ( NixInstaller :: Other ( which ( "nix" ) ? ) ) ,
207
+ None => Ok ( NixInstaller :: Other ) ,
208
208
}
209
209
}
210
210
}
You can’t perform that action at this time.
0 commit comments