File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -512,8 +512,8 @@ where
512512 /// println!("Channel count: {}", config.channel_count.get());
513513 /// # Ok::<(), Box<dyn std::error::Error>>(())
514514 /// ```
515- pub fn get_config ( & self ) -> & InputConfig {
516- self . config . as_ref ( ) . expect ( "ConfigIsSet" )
515+ pub fn get_config ( & self ) -> InputConfig {
516+ self . config . copied ( ) . expect ( "ConfigIsSet" )
517517 }
518518}
519519
Original file line number Diff line number Diff line change @@ -512,8 +512,8 @@ where
512512 /// println!("Channel count: {}", config.channel_count.get());
513513 /// # Ok::<(), Box<dyn std::error::Error>>(())
514514 /// ```
515- pub fn get_config ( & self ) -> & OutputConfig {
516- self . config . as_ref ( ) . expect ( "ConfigIsSet" )
515+ pub fn get_config ( & self ) -> OutputConfig {
516+ self . config . copied ( ) . expect ( "ConfigIsSet" )
517517 }
518518}
519519
You can’t perform that action at this time.
0 commit comments