Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ panic = 'unwind'
[workspace.dependencies]
wincode = "0.5.5"
cactus = "1.0"
filetime = "0.2"
fnv = "1.0"
getopts = "0.2"
glob = "0.3"
Expand Down
1 change: 1 addition & 0 deletions cfgrammar/src/lib/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ macro_rules! try_into_numeric {
($typ:ty) => {
impl TryInto<$typ> for &HeaderValue {
type Error = HeaderError;
#[allow(unreachable_code)]
fn try_into(self) -> Result<$typ, Self::Error> {
macro_rules! fmt_err {
($found:literal,$span:ident) => {
Expand Down
1 change: 0 additions & 1 deletion lrpar/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ lrtable = { path="../lrtable", version = "0.15", features = ["wincode"] }

wincode = { workspace = true, features = ["derive"] }
cactus.workspace = true
filetime.workspace = true
indexmap.workspace = true
num-traits.workspace = true
packedvec.workspace = true
Expand Down
6 changes: 2 additions & 4 deletions lrpar/src/lib/ctbuilder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ use cfgrammar::{
header::{Header, HeaderError, HeaderErrorKind, Value},
yacc::{YaccGrammar, YaccKind, ast::ASTWithValidityInfo},
};
use filetime::FileTime;
use lrtable::{StateGraph, StateTable, statetable::Conflicts};
use num_traits::{AsPrimitive, PrimInt, Unsigned};
use wincode::{SchemaRead, SchemaReadOwned, SchemaWrite};
Expand Down Expand Up @@ -418,7 +417,7 @@ where
#[cfg(test)]
pub fn inspect_recoverer(
mut self,
cb: Box<dyn for<'h, 'y> Fn(RecoveryKind) -> Result<(), Box<dyn Error>>>,
cb: Box<dyn Fn(RecoveryKind) -> Result<(), Box<dyn Error>>>,
) -> Self {
self.inspect_callback = Some(cb);
self
Expand Down Expand Up @@ -632,8 +631,7 @@ where
// cases.
if let Ok(ref inmd) = fs::metadata(grmp)
&& let Ok(ref out_rs_md) = fs::metadata(outp)
&& FileTime::from_last_modification_time(out_rs_md)
> FileTime::from_last_modification_time(inmd)
&& out_rs_md.modified()? > inmd.modified()?
&& let Ok(outc) = read_to_string(outp)
{
if outc.contains(&cache) {
Expand Down