@@ -3,7 +3,7 @@ use camino::{Utf8Path, Utf8PathBuf};
33use fluent_uri:: Iri ;
44use semver:: Version ;
55
6- use std:: { collections:: HashMap , fs, io:: ErrorKind , mem , sync:: Arc } ;
6+ use std:: { collections:: HashMap , fs, io:: ErrorKind , sync:: Arc } ;
77
88use sysand_core:: {
99 commands:: lock:: { DEFAULT_LOCKFILE_NAME , LockOutcome } ,
@@ -43,13 +43,6 @@ pub fn command_clone(
4343 client : reqwest_middleware:: ClientWithMiddleware ,
4444 runtime : Arc < tokio:: runtime:: Runtime > ,
4545) -> Result < ( ) > {
46- let ResolutionOptions {
47- index,
48- default_index,
49- no_index,
50- include_std,
51- } = resolution_opts;
52-
5346 let target: Utf8PathBuf = target. unwrap_or_else ( || "." . into ( ) ) ;
5447 let project_path = {
5548 // Canonicalization is performed only for better error messages
@@ -156,7 +149,7 @@ fn obtain_project(
156149 config : & Config ,
157150 client : & reqwest_middleware:: ClientWithMiddleware ,
158151 runtime : & Arc < tokio:: runtime:: Runtime > ,
159- project_path : PathBuf ,
152+ project_path : Utf8PathBuf ,
160153) -> Result <
161154 (
162155 bool ,
@@ -361,10 +354,10 @@ pub fn get_project_version<R: ResolveRead>(
361354/// Removes all files in the directory.
362355/// All errors are ignored.
363356fn clean_dir < P : AsRef < Utf8Path > > ( path : P ) {
364- let Ok ( entries) = fs:: read_dir ( & path) else {
357+ let Ok ( entries) = fs:: read_dir ( path. as_ref ( ) ) else {
365358 return ;
366359 } ;
367- log:: debug!( "clearing contents of dir `{}`" , path. as_ref( ) . display ( ) ) ;
360+ log:: debug!( "clearing contents of dir `{}`" , path. as_ref( ) ) ;
368361
369362 for entry in entries {
370363 let Ok ( entry) = entry else { continue } ;
0 commit comments