Jelajahi Sumber

core API: component.new()

awiouy 7 tahun lalu
induk
melakukan
ea597361ff
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      core/src/component.rs

+ 1 - 1
core/src/component.rs

@@ -4,7 +4,7 @@ macro_rules! component {
         pub struct $name(::std::sync::Arc<($crate::session::SessionWeak, ::std::sync::Mutex<$inner>)>);
         impl $name {
             #[allow(dead_code)]
-            pub fn new(session: $crate::session::SessionWeak) -> $name {
+            pub(crate) fn new(session: $crate::session::SessionWeak) -> $name {
                 debug!(target:"librespot::component", "new {}", stringify!($name));
 
                 $name(::std::sync::Arc::new((session, ::std::sync::Mutex::new($inner {