Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

Commit

Permalink
[move-analyzer] Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Deagler committed Aug 6, 2022
1 parent 8923e41 commit f2fdfb6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module Symbols::M2 {
This is a multiline docstring
This docstring has empty lines.
It uses the ** format instead of ///
*/
fun other_doc_struct(): Symbols::M3::OtherDocStruct {
Expand All @@ -19,4 +19,4 @@ module Symbols::M2 {
fun other_doc_struct_import(): OtherDocStruct {
M3::create_other_struct(7)
}
}
}
2 changes: 1 addition & 1 deletion language/move-analyzer/src/symbols.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2357,7 +2357,7 @@ fn assert_use_def_with_doc_string(
.ends_with(def_file));
assert!(type_str == format!("{}", use_def.use_type));

assert!(doc_string.to_string() == format!("{}", use_def.doc_string));
assert!(doc_string == use_def.doc_string);
match use_def.type_def_loc {
Some(type_def_loc) => {
let tdef_line = type_def.unwrap().0;
Expand Down
4 changes: 2 additions & 2 deletions language/move-analyzer/tests/symbols/sources/M6.move
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module Symbols::M6 {
This is a multiline docstring
This docstring has empty lines.
It uses the ** format instead of ///
*/
fun other_doc_struct(): Symbols::M7::OtherDocStruct {
Expand All @@ -39,4 +39,4 @@ module Symbols::M6 {
fun other_doc_struct_import(): OtherDocStruct {
M7::create_other_struct(7)
}
}
}

0 comments on commit f2fdfb6

Please sign in to comment.