Skip to content

Commit

Permalink
style: move long type parameter list to where-clause
Browse files Browse the repository at this point in the history
  • Loading branch information
dherman committed Sep 9, 2024
1 parent c4fcf56 commit 7ef24b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/neon/src/object/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,11 @@ pub struct PropOptions<'a, 'cx: 'a, O: Object, K: PropertyKey> {
pub(crate) key: K,
}

impl<'a, 'cx: 'a, O: Object, K: PropertyKey> PropOptions<'a, 'cx, O, K> {
impl<'a, 'cx: 'a, O, K> PropOptions<'a, 'cx, O, K>
where
O: Object,
K: PropertyKey,
{
/// Gets the property from the object and attempts to convert it to a Rust value.
/// Equivalent to calling `R::from_js(cx, obj.get(cx)?)`.
///
Expand Down

0 comments on commit 7ef24b5

Please sign in to comment.