Skip to content

Commit

Permalink
suppress inline warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
avan1235 committed Apr 10, 2023
1 parent 56961d7 commit 3714438
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ sealed class Res<out ERROR, out OK> {
}
}

@Suppress("NOTHING_TO_INLINE")
inline fun <E, R> R.ok(): Res<E, R> = Res.Ok(this)

@Suppress("NOTHING_TO_INLINE")
inline fun <E, R> E.err(): Res<E, R> = Res.Err(this)

inline fun <E, R, M> Res<E, R>?.on(
Expand Down

0 comments on commit 3714438

Please sign in to comment.