Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Commit

Permalink
fix camdict: invalid fresh upath
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Lee committed Jul 24, 2023
1 parent d3b30bd commit bbba43e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 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
@@ -1,6 +1,6 @@
[package]
name = "mafa"
version = "0.2.2"
version = "0.2.3"
edition = "2021"
rust-version = "1.66.0"
authors = ["Michael Lee <[email protected]/[email protected]>"]
Expand Down
2 changes: 2 additions & 0 deletions src/camd/camd_res.rs
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,8 @@ impl<'w, 's> CamdResult<'w, 's> {
let bytes = s.as_bytes();
let mut lv_expl_list = Vec::<&str>::new();

dbgg!((word, s));

let mut begi_lv = 0usize;
let mut endi_lv = 0usize;
for i in 0..bytes.len() {
Expand Down
8 changes: 3 additions & 5 deletions src/camd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ impl CamdClient<'_> {
self.mafad
.cache_append("camd", &comb, &format!("{}-", &comb))?;

self.upaths.push(Upath(upath1));
self.upaths.push(Upath(Vec::from(&upath1[0..matched_len])));

Ok(())
}
Expand Down Expand Up @@ -1012,10 +1012,7 @@ impl CamdClient<'_> {

self.mafad.init_cache("camd", &remote_data)?;
} else if let CacheMechanism::Local = self.input.cachm {
self.mafad.try_init_cache(
"camd",
"[4,0,1,0,1,0,1,1,2,1,1,9,0,2,0,0,1]\n[4,0,1,0,1,0,1,1,2,1,1,9,0,3,0,0,1]\n-",
)?;
self.mafad.try_init_cache("camd", "[11,1,1,3,3]\n-")?;
} else if let CacheMechanism::No = self.input.cachm {
is_rebuild = true;
}
Expand Down Expand Up @@ -1063,6 +1060,7 @@ impl CamdClient<'_> {
is_fin: true,
})?;

dbgg!((&self.input.words, &explained));
let camd_res = CamdResult::from_str(&self.input.words, &explained)?;
dbgg!(&camd_res);

Expand Down

0 comments on commit bbba43e

Please sign in to comment.