Skip to content

Commit

Permalink
Minor stylistic changes
Browse files Browse the repository at this point in the history
Just a few spaces and an intermediate veriable to make the code look a
little bit nicer.
  • Loading branch information
Shatur committed Jun 7, 2024
1 parent bac642d commit 9218b6f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/core/replication_rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ impl AppRuleExt for App {
self.world_mut()
.resource_mut::<ReplicationRules>()
.insert(rule);

self
}

Expand All @@ -187,6 +188,7 @@ impl AppRuleExt for App {
self.world_mut()
.resource_mut::<ReplicationRules>()
.insert(rule);

self
}
}
Expand Down
1 change: 1 addition & 0 deletions tests/changes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ fn marker_with_history_old_update() {
.world()
.get::<BoolHistory>(client_entity)
.unwrap();

assert_eq!(
history.0,
[false],
Expand Down
1 change: 1 addition & 0 deletions tests/removal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ fn marker() {
.world_mut()
.spawn((Replicated, OriginalComponent))
.id();

let client_entity = client_app.world_mut().spawn(ReplaceMarker).id();

let client = client_app.world().resource::<RepliconClient>();
Expand Down
6 changes: 2 additions & 4 deletions tests/server_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,8 @@ fn event_queue() {
server_app.exchange_with_client(&mut client_app);
client_app.update();

assert!(client_app
.world()
.resource::<Events<DummyEvent>>()
.is_empty());
let events = client_app.world().resource::<Events<DummyEvent>>();
assert!(events.is_empty());

// Restore the init tick to receive the event.
*client_app.world_mut().resource_mut::<ServerInitTick>() = previous_tick;
Expand Down

0 comments on commit 9218b6f

Please sign in to comment.