From 5cf1e679afc1928fbd6c87fe6295841d0f042220 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Sat, 25 Apr 2026 22:27:28 +0200 Subject: [PATCH] clean up builder API --- vorago-shared-hal/src/uart/mod.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vorago-shared-hal/src/uart/mod.rs b/vorago-shared-hal/src/uart/mod.rs index d6217ad..0fd6803 100644 --- a/vorago-shared-hal/src/uart/mod.rs +++ b/vorago-shared-hal/src/uart/mod.rs @@ -212,32 +212,32 @@ impl Config { } } - pub fn clock_config(mut self, clock_config: ClockConfig) -> Self { + pub fn with_clock_config(mut self, clock_config: ClockConfig) -> Self { self.clock_config = clock_config; self } - pub fn parity_none(mut self) -> Self { + pub fn with_parity_none(mut self) -> Self { self.parity = Parity::None; self } - pub fn parity_even(mut self) -> Self { + pub fn with_parity_even(mut self) -> Self { self.parity = Parity::Even; self } - pub fn parity_odd(mut self) -> Self { + pub fn with_parity_odd(mut self) -> Self { self.parity = Parity::Odd; self } - pub fn stopbits(mut self, stopbits: Stopbits) -> Self { + pub fn with_stopbits(mut self, stopbits: Stopbits) -> Self { self.stopbits = stopbits; self } - pub fn wordsize(mut self, wordsize: WordSize) -> Self { + pub fn with_wordsize(mut self, wordsize: WordSize) -> Self { self.wordsize = wordsize; self } -- 2.43.0