We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
&Arc
1 parent 4d24bc1 commit 6eaac05Copy full SHA for 6eaac05
src/control.rs
@@ -22,8 +22,8 @@ impl Default for Controller {
22
}
23
24
impl Controller {
25
- pub fn shared(&self) -> Arc<ControllerShared> {
26
- Arc::clone(&self.shared)
+ pub fn shared(&self) -> &Arc<ControllerShared> {
+ &self.shared
27
28
29
pub fn loop_(&self) -> bool {
src/node/audio_buffer_source.rs
@@ -185,7 +185,7 @@ impl AudioBufferSourceNode {
185
controller.set_loop(loop_);
186
controller.set_loop_start(loop_start);
187
controller.set_loop_end(loop_end);
188
- let controller_shared = controller.shared();
+ let controller_shared = Arc::clone(controller.shared());
189
190
let renderer = AudioBufferSourceRenderer {
191
start_time: f64::MAX,
0 commit comments