some formatting and renaming
Some checks failed
Rust/sat-rs/pipeline/pr-main Build started...
Rust/sat-rs/pipeline/head There was a failure building this commit

This commit is contained in:
Robin Müller 2024-03-04 16:25:43 +01:00
parent 2a5795c892
commit f3777ca0d2
Signed by: muellerr
GPG Key ID: A649FB78196E3849

View File

@ -170,8 +170,8 @@ impl<PacketHandler: CcsdsPacketHandler<Error = E>, E: 'static> ReceivesTcCore
} }
impl<PacketHandler: CcsdsPacketHandler<Error = E>, E: 'static> CcsdsDistributor<PacketHandler, E> { impl<PacketHandler: CcsdsPacketHandler<Error = E>, E: 'static> CcsdsDistributor<PacketHandler, E> {
pub fn new(apid_handler: PacketHandler) -> Self { pub fn new(packet_handler: PacketHandler) -> Self {
CcsdsDistributor { packet_handler: apid_handler } CcsdsDistributor { packet_handler }
} }
pub fn packet_handler(&self) -> &PacketHandler { pub fn packet_handler(&self) -> &PacketHandler {