Skip to content

Commit

Permalink
Use extra messages
Browse files Browse the repository at this point in the history
  • Loading branch information
temeddix committed Mar 15, 2024
1 parent c1dd9e9 commit 17cd00e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions flutter_ffi_plugin/example/native/hub/src/sample_functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,18 @@ pub async fn stream_fractal() {
});
}

// A dummy function that uses sample messages to eliminate warnings.
#[allow(dead_code)]
async fn use_messages() {
use messages::sample_folder::enum_and_oneof::*;
_ = SampleInput::get_dart_signal_receiver();
SampleOutput {
kind: 3,
oneof_input: Some(sample_output::OneofInput::Age(25)),
}
.send_signal_to_dart(None)
}

// Business logic for testing various crates.
pub async fn run_debug_tests() {
if !SHOULD_DEMONSTRATE || !IS_DEBUG_MODE {
Expand Down

0 comments on commit 17cd00e

Please sign in to comment.