You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// An empty old_crate_name indicates that there is no old crate or object file to remove, we are just loading a new crate (or inserting its object file)
258
258
None
259
259
}else{
260
-
let old_crate_name = mod_mgmt::crate_name_from_path(&Path::new(old_crate_module_file_name)).to_string();
260
+
let old_crate_name = mod_mgmt::crate_name_from_path(old_crate_module_file_name.as_ref())
261
+
.ok_or("invalid old crate module file name")?
262
+
.to_string();
261
263
if curr_namespace.get_crate(&old_crate_name).is_none(){
262
264
println!("\t Note: old crate {:?} was not currently loaded into namespace {:?}.", old_crate_name, curr_namespace.name());
0 commit comments