Don't squawk when running under cargo

This commit is contained in:
Jonathan Kelley 2024-03-17 21:15:57 -07:00
parent 834d490beb
commit be00847199
No known key found for this signature in database
GPG key ID: 1FBB50F7EB0A08BE

View file

@ -43,14 +43,10 @@ pub fn connect(mut callback: impl FnMut(HotReloadMsg) + Send + 'static) {
break;
}
// It's likely we're running under just cargo and not dx
path = match path.parent() {
Some(parent) => parent.to_path_buf(),
None => {
return eprintln!(
"could not find hot reloading server for crate at {}",
env!("CARGO_MANIFEST_DIR")
)
}
None => return,
};
}