Skip to content

Commit

Permalink
fix: Add missing semicolons when not returning anything (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored Oct 29, 2023
1 parent 23365ca commit 38d4de1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions common/src/geometry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ impl Add<Vec2> for Point {
impl AddAssign<Vec2> for Point {
#[inline]
fn add_assign(&mut self, other: Vec2) {
*self = Point::new(self.x + other.x, self.y + other.y)
*self = Point::new(self.x + other.x, self.y + other.y);
}
}

Expand All @@ -292,7 +292,7 @@ impl Sub<Vec2> for Point {
impl SubAssign<Vec2> for Point {
#[inline]
fn sub_assign(&mut self, other: Vec2) {
*self = Point::new(self.x - other.x, self.y - other.y)
*self = Point::new(self.x - other.x, self.y - other.y);
}
}

Expand All @@ -308,7 +308,7 @@ impl Add<(f64, f64)> for Point {
impl AddAssign<(f64, f64)> for Point {
#[inline]
fn add_assign(&mut self, (x, y): (f64, f64)) {
*self = Point::new(self.x + x, self.y + y)
*self = Point::new(self.x + x, self.y + y);
}
}

Expand All @@ -324,7 +324,7 @@ impl Sub<(f64, f64)> for Point {
impl SubAssign<(f64, f64)> for Point {
#[inline]
fn sub_assign(&mut self, (x, y): (f64, f64)) {
*self = Point::new(self.x - x, self.y - y)
*self = Point::new(self.x - x, self.y - y);
}
}

Expand Down
2 changes: 1 addition & 1 deletion consumer/src/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ impl State {

if let Some(node_state) = self.nodes.get_mut(&node_id) {
if node_id == root {
node_state.parent_and_index = None
node_state.parent_and_index = None;
}
for child_id in node_state.data.children().iter() {
if !seen_child_ids.contains(child_id) {
Expand Down
4 changes: 2 additions & 2 deletions platforms/winit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ impl Adapter {
}

pub fn update(&self, update: TreeUpdate) {
self.adapter.update(update)
self.adapter.update(update);
}

pub fn update_if_active(&self, updater: impl FnOnce() -> TreeUpdate) {
self.adapter.update_if_active(updater)
self.adapter.update_if_active(updater);
}
}

0 comments on commit 38d4de1

Please sign in to comment.