Skip to content

Commit

Permalink
Exporting existing models is already handled by the "export-validator"
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-F-Bryan committed Jul 28, 2022
1 parent 90013a8 commit 7dd24b3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 88 deletions.
2 changes: 0 additions & 2 deletions Cargo.lock

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

4 changes: 0 additions & 4 deletions crates/fj-app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,3 @@ features = ["derive"]
[dependencies.tracing-subscriber]
version = "0.3.15"
features = ["env-filter", "fmt"]

[dev-dependencies]
stl = "0.2.1"
tempfile = "3.3.0"
77 changes: 0 additions & 77 deletions crates/fj-app/tests/smoke_test.rs

This file was deleted.

10 changes: 5 additions & 5 deletions crates/fj/src/abi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ macro_rules! register_model {
unsafe extern "C" fn fj_model_init(
mut host: *mut $crate::abi::Host<'_>,
) -> $crate::abi::InitResult {
let host: &mut dyn $crate::Host = &mut *host;

let result: Result<
let init: fn(
&mut dyn $crate::Host,
) -> Result<
$crate::PluginMetadata,
Box<dyn std::error::Error + Send + Sync>,
> = $init(host);
> = $init;

match result {
match init(&mut *host) {
Ok(meta) => $crate::abi::InitResult::Ok(meta.into()),
Err(e) => $crate::abi::InitResult::Err(e.into()),
}
Expand Down

0 comments on commit 7dd24b3

Please sign in to comment.