Skip to content

Commit

Permalink
fix lints in the FFI
Browse files Browse the repository at this point in the history
  • Loading branch information
jadamcrain committed Mar 30, 2024
1 parent 51389e3 commit 94309ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions dnp3/src/outstation/database/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ pub(crate) enum StaticReadHeader {
FrozenCounter(Option<StaticFrozenCounterVariation>, Option<IndexRange>),
Analog(Option<StaticAnalogInputVariation>, Option<IndexRange>),
#[allow(dead_code)] // TODO - this can be removed if we support these request
FrozenAnalog(
Option<StaticFrozenAnalogInputVariation>,
Option<IndexRange>
),
FrozenAnalog(Option<StaticFrozenAnalogInputVariation>, Option<IndexRange>),
AnalogOutputStatus(
Option<StaticAnalogOutputStatusVariation>,
Option<IndexRange>,
Expand Down
2 changes: 1 addition & 1 deletion ffi/dnp3-ffi/src/outstation/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ mod struct_constructors;

enum OutstationServerState {
Configuring(dnp3::tcp::Server),
#[allow(dead_code)]
Running(ServerHandle),
}

Expand Down Expand Up @@ -184,7 +185,6 @@ pub unsafe fn outstation_server_bind(server: *mut OutstationServer) -> Result<()

server.runtime.spawn(task)?;
server.state = OutstationServerState::Running(handle);
// TODO - why do we leak it?
Box::leak(server);
Ok(())
}
Expand Down

0 comments on commit 94309ba

Please sign in to comment.