Skip to content

Commit

Permalink
fix: some typos and linter warnings fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
pamburus committed Nov 26, 2023
1 parent 6e57ec2 commit 9e69e2a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion 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 @@ -4,7 +4,7 @@ categories = ["command-line-utilities"]
description = "Utility for viewing json-formatted log files."
keywords = ["cli", "human", "log"]
name = "hl"
version = "0.20.0"
version = "0.20.1-alpha.1"
edition = "2021"
build = "build.rs"

Expand Down
6 changes: 3 additions & 3 deletions src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ impl Indexer {
scope.spawn(closure!(ref sfi, |_| {
for segment in rxi.iter() {
let ((stat, chronology), segment) = match segment {
Segment::Complete(segment) => (self.process_segement(&segment), segment),
Segment::Complete(segment) => (self.process_segment(&segment), segment),
Segment::Incomplete(segment, _) => {
let mut stat = Stat::new();
stat.add_invalid();
Expand Down Expand Up @@ -304,7 +304,7 @@ impl Indexer {
.unwrap()
}

fn process_segement(&self, segment: &SegmentBuf) -> (Stat, Chronology) {
fn process_segment(&self, segment: &SegmentBuf) -> (Stat, Chronology) {
let mut stat = Stat::new();
let mut sorted = true;
let mut prev_ts = None;
Expand Down Expand Up @@ -441,7 +441,7 @@ impl Index {
let ts = index.get_timestamps();
let flags = index.get_flags();
Stat {
flags: flags,
flags,
lines_valid: lines.get_valid(),
lines_invalid: lines.get_invalid(),
ts_min_max: if flags & schema::FLAG_HAS_TIMESTAMPS != 0 {
Expand Down

0 comments on commit 9e69e2a

Please sign in to comment.