mirror of
https://github.com/hexedtech/codemp-intellij.git
synced 2024-11-24 16:04:48 +01:00
chore: panic on fake constructor called
This commit is contained in:
parent
6c892e7e3a
commit
1b92d0052e
2 changed files with 6 additions and 10 deletions
10
Cargo.toml
10
Cargo.toml
|
@ -4,17 +4,13 @@ version = "0.1.0"
|
|||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
codemp = { git = "ssh://git@github.com-irl/codewithotherpeopleandchangenamelater/codemp.git", tag = "v0.4.4", features = ["global"] }
|
||||
codemp = { git = "ssh://git@github.com/codewithotherpeopleandchangenamelater/codemp.git", tag = "v0.4.5", features = ["global"] }
|
||||
jni = { version = "0.21.1", features = ["invocation"] }
|
||||
rifgen = { path = "/home/zaaarf/dev/irl/rust/jni/rifgen" }
|
||||
#rifgen = { git = "https://github.com/Kofituo/rifgen.git", rev = "d27d9785b2febcf5527f1deb6a846be5d583f7d7"}
|
||||
#rifgen = "0.1.7"
|
||||
rifgen = { git = "https://github.com/Kofituo/rifgen.git", rev = "d27d9785b2febcf5527f1deb6a846be5d583f7d7"}
|
||||
|
||||
[build-dependencies]
|
||||
flapigen = "0.6.0"
|
||||
rifgen = { path = "/home/zaaarf/dev/irl/rust/jni/rifgen" }
|
||||
#rifgen = "0.1.7"
|
||||
#rifgen = { git = "https://github.com/Kofituo/rifgen.git", rev = "d27d9785b2febcf5527f1deb6a846be5d583f7d7"}
|
||||
rifgen = { git = "https://github.com/Kofituo/rifgen.git", rev = "d27d9785b2febcf5527f1deb6a846be5d583f7d7"}
|
||||
|
||||
|
||||
[lib]
|
||||
|
|
|
@ -79,7 +79,7 @@ struct CursorHandler {
|
|||
impl CursorHandler {
|
||||
#[generate_interface(constructor)]
|
||||
async fn new() -> CursorHandler { //TODO: this sucks but whatever
|
||||
CursorHandler { cursor: None }
|
||||
panic!("Default constructor for CursrorHandler should never be called!")
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -91,6 +91,6 @@ struct BufferHandler {
|
|||
impl BufferHandler {
|
||||
#[generate_interface(constructor)]
|
||||
async fn new() -> BufferHandler { //TODO: this sucks but whatever
|
||||
BufferHandler { buffer: None }
|
||||
panic!("Default constructor for BufferHandler should never be called!")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue