no error handling necessary here
Some checks failed
Rust/spacepackets/pipeline/head There was a failure building this commit

This commit is contained in:
Robin Müller 2023-07-26 22:00:03 +02:00
parent cc1ec56b33
commit 041959e546
Signed by: muellerr
GPG Key ID: A649FB78196E3849

View File

@ -222,7 +222,8 @@ impl CommonPduConfig {
/// The defaults for the source ID, destination ID and the transaction sequence number is the
/// [UnsignedByteFieldU8] with an intitial value of 0
pub fn new_with_defaults() -> Result<Self, PduError> {
pub fn new_with_defaults() -> Self {
// new can not fail for these input parameters
Self::new(
UnsignedByteFieldU8::new(0),
UnsignedByteFieldU8::new(0),
@ -231,7 +232,7 @@ impl CommonPduConfig {
LargeFileFlag::Normal,
CrcFlag::NoCrc,
Direction::TowardsReceiver,
)
).unwrap()
}
pub fn source_id(&self) -> UnsignedByteField {