Don't squawk when running under cargo
This commit is contained in:
1 file changed
+2
-6
@@ -43,14 +43,10 @@ pub fn connect(mut callback: impl FnMut(HotReloadMsg) + Send + 'static) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// It's likely we're running under just cargo and not dx
|
||||||
path = match path.parent() {
|
path = match path.parent() {
|
||||||
Some(parent) => parent.to_path_buf(),
|
Some(parent) => parent.to_path_buf(),
|
||||||
None => {
|
None => return,
|
||||||
return eprintln!(
|
|
||||||
"could not find hot reloading server for crate at {}",
|
|
||||||
env!("CARGO_MANIFEST_DIR")
|
|
||||||
)
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user