Skip to content

Commit

Permalink
fix header include for free functions
Browse files Browse the repository at this point in the history
  • Loading branch information
matcool committed Jul 9, 2024
1 parent 136e4cc commit 853c0d8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
5 changes: 0 additions & 5 deletions src/builder/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,6 @@ pub fn fmt_field(field: &Entity, builder: &Builder) -> Html {
}

pub fn fmt_fun_decl(fun: &Entity, builder: &Builder) -> Html {
if fun.get_name().is_some_and(|x| x.contains("add")) {
dbg!(&fun);
dbg!(fun.get_arguments());
dbg!(fun.get_template_arguments());
}
HtmlElement::new("details")
.with_class("entity-desc")
.with_attr_opt("id", member_fun_link(fun))
Expand Down
4 changes: 2 additions & 2 deletions src/builder/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ impl<'e> EntityMethods<'e> for Entity<'e> {
}

fn definition_file(&self) -> Option<PathBuf> {
self.get_definition()?
.get_location()?
self.get_definition()
.map_or_else(|| self.get_location(), |d| d.get_location())?
.get_file_location()
.file?
.get_path()
Expand Down
1 change: 1 addition & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ macro_rules! default_scripts {
};
}

#[derive(Debug)]
pub struct Source {
pub name: String,
pub dir: UrlPath,
Expand Down

0 comments on commit 853c0d8

Please sign in to comment.