Fix broken markdown in docstring
This commit is contained in:
parent
96a2732735
commit
e1adb9c091
1 changed files with 2 additions and 2 deletions
|
@ -294,7 +294,7 @@ impl Storage for DummyStorage {
|
||||||
fn flush(&mut self) {}
|
fn flush(&mut self) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get an deserialize the [RON](https://github.com/ron-rs/ron] stored at the given key.
|
/// Get an deserialize the [RON](https://github.com/ron-rs/ron) stored at the given key.
|
||||||
#[cfg(feature = "ron")]
|
#[cfg(feature = "ron")]
|
||||||
pub fn get_value<T: serde::de::DeserializeOwned>(storage: &dyn Storage, key: &str) -> Option<T> {
|
pub fn get_value<T: serde::de::DeserializeOwned>(storage: &dyn Storage, key: &str) -> Option<T> {
|
||||||
storage
|
storage
|
||||||
|
@ -302,7 +302,7 @@ pub fn get_value<T: serde::de::DeserializeOwned>(storage: &dyn Storage, key: &st
|
||||||
.and_then(|value| ron::from_str(&value).ok())
|
.and_then(|value| ron::from_str(&value).ok())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Serialize the given value as [RON](https://github.com/ron-rs/ron] and store with the given key.
|
/// Serialize the given value as [RON](https://github.com/ron-rs/ron) and store with the given key.
|
||||||
#[cfg(feature = "ron")]
|
#[cfg(feature = "ron")]
|
||||||
pub fn set_value<T: serde::Serialize>(storage: &mut dyn Storage, key: &str, value: &T) {
|
pub fn set_value<T: serde::Serialize>(storage: &mut dyn Storage, key: &str, value: &T) {
|
||||||
storage.set_string(
|
storage.set_string(
|
||||||
|
|
Loading…
Reference in a new issue