fix: rm useless type definition

This commit is contained in:
Infi 2023-03-22 02:02:52 +01:00
parent 219d252912
commit a4fda034ff
1 changed files with 3 additions and 3 deletions

View File

@ -54,10 +54,10 @@ fun <RC, S> createInlineCodeRule(context: Context, backgroundColor: Int): Rule<R
) )
} }
fun <RC, S : MarkdownState> createCodeRule( fun <RC> createCodeRule(
context: Context, context: Context,
backgroundColor: Int backgroundColor: Int
): Rule<RC, Node<RC>, S> { ): Rule<RC, Node<RC>, MarkdownState> {
val codeStyleProviders = CodeStyleProviders<RC>( val codeStyleProviders = CodeStyleProviders<RC>(
defaultStyleProvider = { listOf(TextAppearanceSpan(context, R.style.Code_TextAppearance)) }, defaultStyleProvider = { listOf(TextAppearanceSpan(context, R.style.Code_TextAppearance)) },
commentStyleProvider = { commentStyleProvider = {
@ -117,7 +117,7 @@ fun <RC, S : MarkdownState> createCodeRule(
) )
}, },
) )
val languageMap = CodeRules.createCodeLanguageMap<RC, S>(codeStyleProviders) val languageMap = CodeRules.createCodeLanguageMap<RC, MarkdownState>(codeStyleProviders)
return CodeRules.createCodeRule( return CodeRules.createCodeRule(
codeStyleProviders.defaultStyleProvider, codeStyleProviders.defaultStyleProvider,