Skip to content

Commit

Permalink
fmt again
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharktheone committed Dec 5, 2024
1 parent 8ded2ac commit 65f80e3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions benches/tree_iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use gosub_shared::node::NodeId;
use gosub_shared::traits::config::{HasCssSystem, HasDocument, HasHtmlParser};
use gosub_shared::traits::document::DocumentBuilder;


#[derive(Clone, Debug, PartialEq)]
struct Config;

Expand Down Expand Up @@ -64,7 +63,7 @@ fn stackoverflow_home(c: &mut Criterion) {
let mut bytestream = ByteStream::new(Encoding::UTF8, None);
let _ = bytestream.read_from_file(html_file);

let doc_handle : DocumentHandle<Config> = DocumentBuilderImpl::new_document(None);
let doc_handle: DocumentHandle<Config> = DocumentBuilderImpl::new_document(None);
let _ = Html5Parser::parse_document(&mut bytestream, doc_handle.clone(), None);

group.bench_function("stackoverflow home", |b| {
Expand Down
2 changes: 0 additions & 2 deletions crates/gosub_render_utils/src/render_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,6 @@ impl<C: HasLayouter<LayoutTree = Self>> RenderTree<C> {
self.nodes.get(&node_id).map(|props| &props.properties)
}

/// Generate a render tree from the given document
/// Removes all unrenderable nodes from the render tree
fn remove_unrenderable_nodes(&mut self) {
// There are more elements that are not renderable, but for now we only remove the most common ones
Expand Down

0 comments on commit 65f80e3

Please sign in to comment.