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.
2 parents 88c553d + a3598f8 commit bebd763Copy full SHA for bebd763
src/memory.rs
@@ -256,9 +256,9 @@ impl MemoryReference {
256
/// `undefined`, and `Err` if incorrect type.
257
///
258
/// Uses lodash in JavaScript to evaluate the path. See https://lodash.com/docs/#get.
259
- pub fn get_path<T>(&self, path: &str) -> Result<Option<T>, ConversionError>
+ pub fn get_path<T>(&self, path: &str) -> Result<Option<T>, <T as TryFrom<Value>>::Error>
260
where
261
- T: TryFrom<Value, Error = ConversionError>,
+ T: TryFrom<Value>,
262
{
263
let val = js! {
264
return _.get(@{self.as_ref()}, @{path});
0 commit comments