Skip to content

Commit

Permalink
get it to um, build
Browse files Browse the repository at this point in the history
  • Loading branch information
matcool committed Sep 30, 2023
1 parent 464b022 commit 3aec0dd
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ tokio = { version = "1.23.1", features = ["full"] }
futures = "0.3.25"
percent-encoding = "2.2.0"
multipeek = "0.1.2"
pulldown-cmark = { version = "0.9.2", git = "https://github.com/SergioBenitez/pulldown-cmark", branch = "cowstr-heading" }
pulldown-cmark = { version = "0.9.2", git = "https://github.com/SergioBenitez/pulldown-cmark", rev = "01d0d6d22a6c6fb390197be0739cb26b94bacf96" }
emojis = "0.5.2"
cached = "0.42.0"
serde_yaml = "0.9.17"
swc = "0.245.5"
swc_common = "0.29.28"
swc = "0.266.32"
swc_common = "0.32.1"
anyhow = "1.0.68"
minify-html = "0.10.8"
lightningcss = "1.0.0-alpha.39"
Expand Down
2 changes: 1 addition & 1 deletion src/builder/comment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ fn annotate(base: Entity, annotations: &[Annotation]) -> Vec<Html> {
};

list.push(
HtmlText::new("\n".repeat(newlines as usize) + &" ".repeat(spaces as usize)).into(),
HtmlText::new("\n".repeat(newlines as usize) + " ".repeat(spaces as usize).as_str()).into(),
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/builder/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl<'e> OutputEntry<'e> for File {
.tree
.as_ref()
.map(|tree| {
tree.to_owned() + &self.source.dir.join(&self.path).to_string()
tree.to_owned() + self.source.dir.join(&self.path).to_string().as_str()
})
.unwrap_or("".into()),
)
Expand Down
2 changes: 1 addition & 1 deletion src/builder/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ impl<'e> EntityMethods<'e> for Entity<'e> {
} else {
Some(
config.project.tree.clone()?
+ &UrlPath::try_from(&self.header(config)?).ok()?.to_string(),
+ UrlPath::try_from(&self.header(config)?).ok()?.to_string().as_str(),
)
}
}
Expand Down
1 change: 0 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#![feature(let_chains)]
#![feature(is_some_and)]
#![feature(result_option_inspect)]
#![feature(iter_advance_by)]
#![feature(iter_intersperse)]
Expand Down

0 comments on commit 3aec0dd

Please sign in to comment.