Skip to content

Commit

Permalink
fix(codegen/system): update obsolete error message
Browse files Browse the repository at this point in the history
  • Loading branch information
SOF3 committed Nov 30, 2023
1 parent 892c0df commit eceaed3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions codegen/src/system/arg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,10 @@ fn entity_iterator_partial_builder() -> PartialArgTypeBuilder {
})
}

const USAGE_INFERENCE_ERROR: &str =
"Cannot infer parameter usage. Specify explicitly with `#[dynec(...)]`, or use the form `impl \
system::(Read|Write)(Simple|Isotope)<Arch, Comp>` or `impl system::Entity(Creator|Deleter)`.";
const USAGE_INFERENCE_ERROR: &str = "Cannot infer parameter usage. Specify explicitly with \
`#[dynec(...)]`, or use the form `impl \
system::(Read|Write)(Simple|IsotopeFull|IsotopePartial)<Arch, \
Comp>` or `impl system::Entity(Creator|Deleter)`.";

pub(super) fn infer_arg_type(param: &mut syn::PatType) -> Result<ArgType> {
let mut maybe_partial: Option<MaybePartial> = None;
Expand Down

0 comments on commit eceaed3

Please sign in to comment.