Skip to content

Commit

Permalink
allow compilation with rustc 1.76
Browse files Browse the repository at this point in the history
Fix #925
  • Loading branch information
Canop committed Aug 4, 2024
1 parent 7b2663b commit 6462365
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ license = "MIT"
categories = ["command-line-utilities"]
readme = "README.md"
build = "build.rs"
rust-version = "1.65"
rust-version = "1.76"
exclude = ["website", "broot*.zip"]

[features]
Expand Down
2 changes: 1 addition & 1 deletion src/pattern/fuzzy_pattern.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub struct FuzzyPattern {

impl fmt::Display for FuzzyPattern {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
for &c in &self.chars {
for &c in self.chars.iter() {
f.write_char(c)?
}
Ok(())
Expand Down
2 changes: 1 addition & 1 deletion src/tree_build/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ impl<'c> TreeBuilder<'c> {
tree.git_status = ComputationResult::NotComputed;
// it would make no sense to keep only files having a git status and
// not display that type
for line in &mut tree.lines {
for line in tree.lines.iter_mut() {
line.git_status = computer.line_status(&line.path);
}
}
Expand Down

0 comments on commit 6462365

Please sign in to comment.