Fix Un-Renamed add_resource Compile Error (#1357)

This commit is contained in:
Zicklag 2021-01-30 15:32:46 -06:00 committed by GitHub
parent 6f5a4d9deb
commit bff44f76ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -240,7 +240,7 @@ impl AppBuilder {
// so we would need to be extremely certain this is correct
if !self.resources().contains::<R>() {
let resource = R::from_resources(&self.resources());
self.add_resource(resource);
self.insert_resource(resource);
}
self