Skip to content

Commit

Permalink
Merge pull request #100 from pamburus/feature/update-deps
Browse files Browse the repository at this point in the history
new: Updated `capnp` to version 0.18.7
  • Loading branch information
pamburus authored Nov 26, 2023
2 parents 7185c0b + 11e2837 commit c9d46ea
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 10 deletions.
19 changes: 14 additions & 5 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ categories = ["command-line-utilities"]
description = "Utility for viewing json-formatted log files."
keywords = ["cli", "human", "log"]
name = "hl"
version = "0.20.1-alpha.1"
version = "0.20.1-alpha.2"
edition = "2021"
build = "build.rs"

[build-dependencies]
capnpc = "0.17"
capnpc = "0.18"
generic-array = "0"
hex = "0"
serde = { version = "1", features = ["derive"] }
Expand All @@ -22,7 +22,7 @@ atoi = "1"
bincode = "1"
bitmask = "0"
bytefmt = "0"
capnp = "0.17"
capnp = "0.18"
chrono = { version = "0.4", default-features = false, features = ["clock", "serde", "std"] }
chrono-tz = { version = "0", features = ["serde"] }
clap = {version = "4", features = ["wrap_help", "derive", "env"]}
Expand Down
4 changes: 2 additions & 2 deletions src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ impl Index {
Ok(Index {
source: SourceFile {
size: source.get_size(),
path: source.get_path()?.into(),
path: source.get_path()?.to_string()?,
modified: (modified.get_sec(), modified.get_nsec()),
stat: Self::load_stat(source.get_index()?),
blocks: Self::load_blocks(source)?,
Expand All @@ -425,7 +425,7 @@ impl Index {
let root: schema::root::Builder = message.init_root();
let mut source = root.init_source();
source.set_size(self.source.size);
source.set_path(&self.source.path);
source.set_path(self.source.path.as_bytes().into());
let mut modified = source.reborrow().init_modified();
modified.set_sec(self.source.modified.0);
modified.set_nsec(self.source.modified.1);
Expand Down

0 comments on commit c9d46ea

Please sign in to comment.