Skip to content

Commit

Permalink
Downgrade ouroboros to 0.17.2
Browse files Browse the repository at this point in the history
  • Loading branch information
vbkaisetsu committed Jul 14, 2024
1 parent b1a2512 commit 6577001
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion examples/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ i18n-embed = { version = "0.14.1", features = ["fluent-system", "web-sys-request
i18n-embed-fl = "0.8.0" # MIT
js-sys = "0.3.69" # MIT or Apache-2.0
once_cell = "1.19.0" # MIT or Apache-2.0
ouroboros = "0.18.4" # MIT or Apache-2.0
ouroboros = "0.17.2" # MIT or Apache-2.0
rust-embed = "8.5.0" # MIT
ruzstd = "0.7.0" # MIT
serde = "1" # MIT or Apache-2.0
Expand Down
11 changes: 2 additions & 9 deletions examples/wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ pub mod i18n;
pub mod text_input;
pub mod token_view;

use std::borrow::Cow;
use std::io::Read;
use std::rc::Rc;

Expand Down Expand Up @@ -93,20 +92,14 @@ impl Worker for VaporettoWorker {

fields.sentence_orig.update_raw(msg).unwrap();

let n_tags = fields.sentence_filtered.n_tags();
fields
.sentence_orig
.boundaries_mut()
.copy_from_slice(fields.sentence_filtered.boundaries());
fields.sentence_orig.reset_tags(n_tags);
for (d, s) in fields
fields
.sentence_orig
.tags_mut()
.iter_mut()
.zip(fields.sentence_filtered.tags())
{
*d = s.as_ref().map(|x| Cow::Owned(x.to_string()));
}
.clone_from_slice(fields.sentence_filtered.tags());
});

let tokens = self
Expand Down

0 comments on commit 6577001

Please sign in to comment.