Skip to content

Commit

Permalink
Fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Cypher1 committed Sep 15, 2024
1 parent 0897159 commit 729b707
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions entity-component-slab/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ pub trait ContainsSlab<T, Archetypes>: World {
fn get_all(&self) -> &Vec<T>;
fn get_all_mut(&mut self) -> &mut Vec<T>;
fn next_internal(&mut self) -> TypedIndex<T> {
TypedIndex::next(self.get_all())
.expect("Should always be able to allocate a new entity")
TypedIndex::next(self.get_all()).expect("Should always be able to allocate a new entity")
}
fn alloc_internal(&mut self, value: T) -> TypedIndex<T> {
TypedIndex::new(self.get_all_mut(), value)
Expand Down
3 changes: 1 addition & 2 deletions takolib/src/ast/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mod nodes;
use entity_component_slab::{Slab, ChildSlab};
use entity_component_slab::{ChildSlab, Slab};
pub use nodes::*;
pub mod location;
mod pretty_printer;
Expand All @@ -15,7 +15,6 @@ use smallvec::{smallvec, SmallVec};
use std::path::PathBuf;
use string_interner::{Identifier, StringInterner};


#[derive(Clone, Default, Debug, Hash, PartialEq, Eq)]
pub struct Ast {
// TODO(usability): Add a range tree for mapping from locations to nodes.
Expand Down

0 comments on commit 729b707

Please sign in to comment.