Skip to content

Commit

Permalink
fix warnings and deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurnikov committed Jun 6, 2024
1 parent 5d69280 commit 041e854
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class RsExternalLinterPassFactory(
)

override fun createHighlightingPass(file: PsiFile, editor: Editor): TextEditorHighlightingPass? {
FileStatusMap.getDirtyTextRange(editor, passId) ?: return null
FileStatusMap.getDirtyTextRange(editor.document, file, passId) ?: return null
return RsExternalLinterPass(this, file, editor)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ class TypeInferenceWalker(
}
}

fun inferDotFieldTy(receiverTy: Ty, dotField: MvStructDotField, expected: Expectation): Ty {
fun inferDotFieldTy(receiverTy: Ty, dotField: MvStructDotField): Ty {
val structTy =
receiverTy.derefIfNeeded() as? TyStruct ?: return TyUnknown

Expand Down Expand Up @@ -563,7 +563,7 @@ class TypeInferenceWalker(
val field = dotExpr.structDotField
return when {
methodCall != null -> inferMethodCallTy(receiverTy, methodCall, expected)
field != null -> inferDotFieldTy(receiverTy, field, expected)
field != null -> inferDotFieldTy(receiverTy, field)
// incomplete
else -> TyUnknown
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/org/move/openapiext/utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ fun saveAllDocuments() = FileDocumentManager.getInstance().saveAllDocuments()
* This function saves all documents "as they are" (see [FileDocumentManager.saveDocumentAsIs]), but also fires that
* these documents should be stripped later (when [saveAllDocuments] is called).
*/
fun saveAllDocumentsAsTheyAre(reformatLater: Boolean = true) {
fun saveAllDocumentsAsTheyAre() {
val documentManager = FileDocumentManager.getInstance()
// val rustfmtWatcher = RustfmtWatcher.getInstance()
// rustfmtWatcher.withoutReformatting {
Expand Down

0 comments on commit 041e854

Please sign in to comment.