Skip to content

Commit

Permalink
Remove unnecessary ref return on UIElement extensions
Browse files Browse the repository at this point in the history
Why did I do this in the first place?
It's already a reference type tho 🤦
  • Loading branch information
neon-nyan committed Jan 31, 2025
1 parent f5fb349 commit 0238c45
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 92 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ internal static partial class UIElementExtensions
/// </summary>
/// <param name="element">The <seealso cref="UIElement"/> member of an element</param>
/// <param name="inputCursor">The cursor you want to set. Use <see cref="InputSystemCursor.Create"/> to choose the cursor you want to set.</param>
internal static ref T WithCursor<T>(this T element, InputCursor inputCursor) where T : UIElement
internal static T WithCursor<T>(this T element, InputCursor inputCursor) where T : UIElement
{
element.SetCursor(inputCursor);
return ref Unsafe.AsRef(ref element);
return element;
}
}
}
Loading

0 comments on commit 0238c45

Please sign in to comment.