Skip to content

Commit

Permalink
migration to edition 2021, plus fix compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Dushistov committed Nov 11, 2024
1 parent 257b9b4 commit 1043c30
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion android-example/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "flapigen-android-example"
version = "0.0.1"
authors = ["Evgeniy A. Dushistov <[email protected]>"]
build = "build.rs"
edition = "2018"
edition = "2021"

[lib]
name = "mobcore"
Expand Down
2 changes: 1 addition & 1 deletion android-example/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ impl Session {
#[cfg(target_os = "android")]
android_logger::init_once(
android_logger::Config::default()
.with_min_level(log::Level::Debug)
.with_max_level(log::LevelFilter::Debug)
.with_tag("Hello"),
);
log_panics::init(); // log panics rather than printing them
Expand Down
2 changes: 1 addition & 1 deletion android-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "flapigen-android-tests"
version = "0.0.1"
authors = ["Evgeniy A. Dushistov <[email protected]>"]
build = "build.rs"
edition = "2018"
edition = "2021"

[lib]
name = "mobcore"
Expand Down
2 changes: 1 addition & 1 deletion android-tests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ impl Session {
#[cfg(target_os = "android")]
android_logger::init_once(
android_logger::Config::default()
.with_min_level(log::Level::Debug)
.with_max_level(log::LevelFilter::Debug)
.with_tag("Hello"),
);
log_panics::init(); // log panics rather than printing them
Expand Down
2 changes: 1 addition & 1 deletion cpp-example/rust-part/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "cpp-example-rust-part"
version = "0.1.0"
authors = ["Evgeniy A. Dushistov <[email protected]>"]
edition = "2018"
edition = "2021"
build = "build.rs"

# ANCHOR: cargo_lib_section
Expand Down
2 changes: 1 addition & 1 deletion cpp_tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "flapigen_test_cpp"
version = "0.1.0"
authors = ["Evgeniy A. Dushistov <[email protected]>"]
build = "build.rs"
edition = "2018"
edition = "2021"

[lib]
name = "flapigen_test"
Expand Down
1 change: 1 addition & 0 deletions cpp_tests/src/cpp_glue.rs.in
Original file line number Diff line number Diff line change
Expand Up @@ -1012,6 +1012,7 @@ foreign_typemap!(
($p:r_type) <T> impl FnOnce(T) <= CFnOnce!()
{
$out_no_type = move |x| {
let _ = & $p;
swig_from_rust_to_i_type!(T, x, x)
($p.cb)(x, $p.ctx);
};
Expand Down
2 changes: 1 addition & 1 deletion debug-util/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "debug-util"
version = "0.1.0"
authors = ["Evgeniy A. Dushistov <[email protected]>"]
edition = "2018"
edition = "2021"

[dependencies]
env_logger = "0.11.3"
Expand Down
2 changes: 1 addition & 1 deletion jni_tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "flapigen_test_jni"
version = "0.1.0"
authors = ["Evgeniy A. Dushistov <[email protected]>"]
build = "build.rs"
edition = "2018"
edition = "2021"

[lib]
name = "flapigen_test_jni"
Expand Down
2 changes: 1 addition & 1 deletion python_tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "flapigen_test_python"
version = "0.1.0"
authors = ["Adam Rzepka <[email protected]>"]
build = "build.rs"
edition = "2018"
edition = "2021"

[lib]
name = "flapigen_test_python"
Expand Down

0 comments on commit 1043c30

Please sign in to comment.