Skip to content

Commit

Permalink
Update highlighter to latest version to accept &str
Browse files Browse the repository at this point in the history
  • Loading branch information
bensadeh committed Oct 19, 2024
1 parent e509e12 commit f670c5f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async-trait = "0.1.83"
clap = { version = "4.5.19", features = ["derive"] }
clap_complete = "4.5.32"
ctrlc = "3.4.5"
inlet_manifold = "0.1.2"
inlet_manifold = { git = "https://github.com/bensadeh/manifold", branch = "main" }
linemux = "0.3.0"
miette = { version = "7.2.0", features = ["fancy"] }
nu-ansi-term = "0.50.1"
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async fn process_lines<T: AsyncLineReader + AsyncLineWriter + Unpin + Send>(mut
while let Ok(Some(line)) = io.next_line_batch().await {
let highlighted_lines = line
.into_par_iter()
.map(|line| highlighter.apply(line))
.map(|line| highlighter.apply(line.as_str()))
.collect::<Vec<_>>()
.join("\n");

Expand Down

0 comments on commit f670c5f

Please sign in to comment.