diff --git a/language/move-analyzer/editors/code/tests/lsp-demo/sources/M2.move b/language/move-analyzer/editors/code/tests/lsp-demo/sources/M2.move index 0daaa28bf5..4d00f275e7 100644 --- a/language/move-analyzer/editors/code/tests/lsp-demo/sources/M2.move +++ b/language/move-analyzer/editors/code/tests/lsp-demo/sources/M2.move @@ -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 { @@ -19,4 +19,4 @@ module Symbols::M2 { fun other_doc_struct_import(): OtherDocStruct { M3::create_other_struct(7) } -} \ No newline at end of file +} diff --git a/language/move-analyzer/src/symbols.rs b/language/move-analyzer/src/symbols.rs index 45e9276ad4..6a2adc5af5 100644 --- a/language/move-analyzer/src/symbols.rs +++ b/language/move-analyzer/src/symbols.rs @@ -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; diff --git a/language/move-analyzer/tests/symbols/sources/M6.move b/language/move-analyzer/tests/symbols/sources/M6.move index a5e5694b63..aa3427fa8c 100644 --- a/language/move-analyzer/tests/symbols/sources/M6.move +++ b/language/move-analyzer/tests/symbols/sources/M6.move @@ -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 { @@ -39,4 +39,4 @@ module Symbols::M6 { fun other_doc_struct_import(): OtherDocStruct { M7::create_other_struct(7) } -} \ No newline at end of file +}