(str: &str)
| 44 | } |
| 45 | |
| 46 | fn from_str<T>(str: &str) -> Option<T> |
| 47 | where T: serde::de::DeserializeOwned { |
| 48 | match ron::from_str(str) { |
| 49 | Ok(config) => Some(config), |
| 50 | Err(err) => { |
| 51 | log::warn!("Failed to decode config: {err}"); |
| 52 | None |
| 53 | } |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | #[derive(serde::Deserialize, serde::Serialize)] |
| 58 | pub struct ScratchConfigV2 { |
no outgoing calls
no test coverage detected