Skip to content

Commit

Permalink
fix(typo): fix scorer argument name (#63)
Browse files Browse the repository at this point in the history
Co-authored-by: Charles Bournhonesque <cbournhonesque@snapchat.com>
  • Loading branch information
cBournhonesque and cbournhonesque-sc committed Jan 5, 2023
1 parent caa196e commit 5be7133
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scorers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ pub trait ScorerBuilder: std::fmt::Debug + Sync + Send {
struct MyScorer;
impl ScorerBuilder for MyBuilder {
fn build(&self, cmd: &mut Commands, action: Entity, actor: Entity) {
fn build(&self, cmd: &mut Commands, scorer: Entity, actor: Entity) {
cmd.entity(action).insert(MyScorer);
}
}
Expand Down Expand Up @@ -113,8 +113,8 @@ impl<T> ScorerBuilder for T
where
T: Component + Clone + std::fmt::Debug + Send + Sync,
{
fn build(&self, cmd: &mut Commands, action: Entity, _actor: Entity) {
cmd.entity(action).insert(T::clone(self));
fn build(&self, cmd: &mut Commands, scorer: Entity, _actor: Entity) {
cmd.entity(scorer).insert(T::clone(self));
}
}

Expand Down

0 comments on commit 5be7133

Please sign in to comment.