1
0
Fork 0

Fix broken rustdoc links

This commit is contained in:
Robbert van der Helm 2022-01-30 17:17:34 +01:00
parent a4606f41cd
commit f0ea9e9451
2 changed files with 2 additions and 2 deletions

View file

@ -360,7 +360,7 @@ pub trait Params {
fn serialize_fields(&self) -> HashMap<String, Vec<u8>>; fn serialize_fields(&self) -> HashMap<String, Vec<u8>>;
/// Restore all fields marked with `#[persist = "stable_name"]` from a hashmap created by /// Restore all fields marked with `#[persist = "stable_name"]` from a hashmap created by
/// [Self::serialize_fields]. All of thse fields should be wrapped in a [PersistentFieldq] with /// [Self::serialize_fields]. All of thse fields should be wrapped in a [PersistentField] with
/// thread safe interior mutability, like an `RwLock` or a `Mutex`. This gets called when the /// thread safe interior mutability, like an `RwLock` or a `Mutex`. This gets called when the
/// plugin's state is being restored. This uses [deserialize_field] under the hood. /// plugin's state is being restored. This uses [deserialize_field] under the hood.
fn deserialize_fields(&self, serialized: &HashMap<String, Vec<u8>>); fn deserialize_fields(&self, serialized: &HashMap<String, Vec<u8>>);

View file

@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
//! Utilities for saving a [Plugin]'s state. //! Utilities for saving a [crate::plugin::Plugin]'s state.
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use std::collections::HashMap; use std::collections::HashMap;