Skip to content

Commit

Permalink
Upgrade avt to the latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
ku1ik committed Oct 4, 2024
1 parent 1555765 commit c4e1705
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions native/vt_nif/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 native/vt_nif/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ crate-type = ["dylib"]

[dependencies]
rustler = "0.27.0"
avt = "0.11.0"
avt = "0.13.0"
2 changes: 1 addition & 1 deletion native/vt_nif/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ fn new(
#[rustler::nif]
fn feed(resource: ResourceArc<VtResource>, input: Binary) -> NifResult<Option<(usize, usize)>> {
let mut vt = convert_err(resource.vt.write(), "rw_lock")?;
let (_, resized) = vt.feed_str(&String::from_utf8_lossy(&input));
let resized = vt.feed_str(&String::from_utf8_lossy(&input)).resized;

if resized {
Ok(Some(vt.size()))
Expand Down

0 comments on commit c4e1705

Please sign in to comment.