Merge remote-tracking branch 'origin/main' into update-lv-tlv
Some checks failed
Rust/spacepackets/pipeline/head There was a failure building this commit
Rust/spacepackets/pipeline/pr-main There was a failure building this commit

This commit is contained in:
2023-08-16 18:17:51 +02:00
2 changed files with 3 additions and 2 deletions

View File

@ -123,7 +123,7 @@ pub struct UnsignedByteField {
}
impl UnsignedByteField {
pub fn new(width: usize, value: u64) -> Self {
pub const fn new(width: usize, value: u64) -> Self {
Self { width, value }
}
@ -204,7 +204,7 @@ pub struct GenericUnsignedByteField<TYPE> {
}
impl<TYPE> GenericUnsignedByteField<TYPE> {
pub fn new(val: TYPE) -> Self {
pub const fn new(val: TYPE) -> Self {
Self { value: val }
}
}