aboutsummaryrefslogtreecommitdiff
path: root/fastadapter/src/main/kotlin/ca/allanwang/kau/adapters/AdapterUtils.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2020-07-18 18:18:16 -0700
committerGitHub <noreply@github.com>2020-07-18 18:18:16 -0700
commitfd95fb5d4fdbf3d25081cb4f5de101d3edd89731 (patch)
tree9cdda7e1eb087f8507364c8f389f65961ed25066 /fastadapter/src/main/kotlin/ca/allanwang/kau/adapters/AdapterUtils.kt
parentceed2ade66042d45a08767171385124c66255249 (diff)
parent271c72b1fc99cf0862dcae9fdf7310b5ffeb4ddc (diff)
downloadkau-fd95fb5d4fdbf3d25081cb4f5de101d3edd89731.tar.gz
kau-fd95fb5d4fdbf3d25081cb4f5de101d3edd89731.tar.bz2
kau-fd95fb5d4fdbf3d25081cb4f5de101d3edd89731.zip
Merge pull request #257 from AllanWang/versions6.0.0
Diffstat (limited to 'fastadapter/src/main/kotlin/ca/allanwang/kau/adapters/AdapterUtils.kt')
-rw-r--r--fastadapter/src/main/kotlin/ca/allanwang/kau/adapters/AdapterUtils.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/fastadapter/src/main/kotlin/ca/allanwang/kau/adapters/AdapterUtils.kt b/fastadapter/src/main/kotlin/ca/allanwang/kau/adapters/AdapterUtils.kt
index 655b355..a9e6bfa 100644
--- a/fastadapter/src/main/kotlin/ca/allanwang/kau/adapters/AdapterUtils.kt
+++ b/fastadapter/src/main/kotlin/ca/allanwang/kau/adapters/AdapterUtils.kt
@@ -27,8 +27,8 @@ import com.mikepenz.fastadapter.select.SelectExtension
/**
* Add kotlin's generic syntax to better support out types
*/
-fun <Item : GenericItem> fastAdapter(vararg adapter: IAdapter<out Item>) =
- FastAdapter.with<Item, IAdapter<out Item>>(adapter.toList())
+fun <Item : GenericItem> fastAdapter(vararg adapter: IAdapter<out Item>): FastAdapter<Item> =
+ FastAdapter.with(adapter.toList())
/**
* Returns selection size, or -1 if selection is disabled