Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to compile chapter 06 #1

Open
ttttttdd opened this issue Jan 22, 2022 · 0 comments
Open

Fails to compile chapter 06 #1

ttttttdd opened this issue Jan 22, 2022 · 0 comments

Comments

@ttttttdd
Copy link

error[E0599]: no function or associated item named new_immediate found for trait object dyn Watcher in the current scope
--> /home/julie/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_asset-0.4.0/src/filesystem_watcher.rs:14:52
|
14 | let watcher: RecommendedWatcher = Watcher::new_immediate(move |res| {
| ^^^^^^^^^^^^^ function or associated item not found in dyn Watcher

error[E0308]: mismatched types
--> /home/julie/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_asset-0.4.0/src/filesystem_watcher.rs:24:28
|
23 | pub fn watch<P: AsRef>(&mut self, path: P) -> Result<()> {
| - this type parameter
24 | self.watcher.watch(path, RecursiveMode::Recursive)
| ^^^^ expected &Path, found type parameter P
|
= note: expected reference &Path
found type parameter P

Compiling bevy_core v0.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant