Skip to content

Commit

Permalink
feat(editor): pass some test-bopomofo test
Browse files Browse the repository at this point in the history
  • Loading branch information
kanru committed Dec 22, 2023
1 parent be0b9cc commit 1c87ef2
Show file tree
Hide file tree
Showing 20 changed files with 1,142 additions and 670 deletions.
74 changes: 74 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions capi/chewing-internal/Cargo.toml
Expand Up @@ -11,6 +11,7 @@ chewing-public = { version = "0.5.1-alpha.1", path = "../chewing-public" }
ffi-opaque = "2.0.0"
libc = "0.2.0"
tracing = "0.1.37"
tracing-subscriber = "0.3.18"

[lib]
crate-type = ["rlib", "staticlib"]
Expand Down
2 changes: 1 addition & 1 deletion capi/chewing-internal/src/ffi.rs
Expand Up @@ -7,7 +7,7 @@ pub trait CopyToCString {
fn copy_to(&self, buf: &mut [c_char]);
}

impl CopyToCString for Phrase<'_> {
impl CopyToCString for Phrase {
fn copy_to(&self, buf: &mut [c_char]) {
let phrase_str = CString::new(self.as_str()).expect("Unable to convert to CString");
let phrase_bytes = phrase_str.as_bytes_with_nul();
Expand Down

0 comments on commit 1c87ef2

Please sign in to comment.