Use builder

This commit is contained in:
Ulf Lilleengen
2021-05-27 10:01:40 +02:00
parent a41a812345
commit 3669eba561
2 changed files with 3 additions and 45 deletions

View File

@ -46,8 +46,9 @@ pub struct Config {
}
impl Config {
pub fn new(rcc: rcc::Config) -> Self {
Self { rcc }
pub fn rcc(mut self, rcc: rcc::Config) -> Self {
self.rcc = rcc;
self
}
}