From d8a0c6461842bcee3389c3e8e98a3a1a038d2868 Mon Sep 17 00:00:00 2001 From: Jan Niehusmann Date: Sat, 15 Oct 2022 17:34:13 +0000 Subject: [PATCH] Make UartConfig::new(...) const --- rp2040-hal/src/uart/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rp2040-hal/src/uart/utils.rs b/rp2040-hal/src/uart/utils.rs index 094096d..f2eb9e7 100644 --- a/rp2040-hal/src/uart/utils.rs +++ b/rp2040-hal/src/uart/utils.rs @@ -85,7 +85,7 @@ pub struct UartConfig { impl UartConfig { /// Create a new instance of UartConfig - pub fn new( + pub const fn new( baudrate: HertzU32, data_bits: DataBits, parity: Option,