@@ -128,7 +128,7 @@ use foo$0::Foo;
128
128
//- /lib.rs crate:foo
129
129
pub struct Foo;
130
130
"# ,
131
- Some ( & OsStr :: new ( "/home/user/project/ " ) ) ,
131
+ Some ( & OsStr :: new ( "/home/user/project" ) ) ,
132
132
Some ( expect ! [ [ r#"https://docs.rs/foo/*/foo/index.html"# ] ] ) ,
133
133
Some ( expect ! [ [ r#"file:///home/user/project/doc/foo/index.html"# ] ] ) ,
134
134
) ;
@@ -141,7 +141,7 @@ fn external_docs_doc_url_std_crate() {
141
141
//- /main.rs crate:std
142
142
use self$0;
143
143
"# ,
144
- Some ( & OsStr :: new ( "/home/user/project/ " ) ) ,
144
+ Some ( & OsStr :: new ( "/home/user/project" ) ) ,
145
145
Some ( expect ! [ "https://doc.rust-lang.org/stable/std/index.html" ] ) ,
146
146
None ,
147
147
) ;
@@ -154,7 +154,7 @@ fn external_docs_doc_url_struct() {
154
154
//- /main.rs crate:foo
155
155
pub struct Fo$0o;
156
156
"# ,
157
- Some ( & OsStr :: new ( "/home/user/project/ " ) ) ,
157
+ Some ( & OsStr :: new ( "/home/user/project" ) ) ,
158
158
Some ( expect ! [ [ r#"https://docs.rs/foo/*/foo/struct.Foo.html"# ] ] ) ,
159
159
Some ( expect ! [ [ r#"file:///home/user/project/doc/foo/struct.Foo.html"# ] ] ) ,
160
160
) ;
@@ -169,7 +169,7 @@ pub struct Fo$0o;
169
169
"# ,
170
170
Some ( & OsStr :: new ( r"C:\Users\user\project" ) ) ,
171
171
Some ( expect ! [ [ r#"https://docs.rs/foo/*/foo/struct.Foo.html"# ] ] ) ,
172
- Some ( expect ! [ [ r#"file:///C:\ Users\ user\ project/doc/foo/struct.Foo.html"# ] ] ) ,
172
+ Some ( expect ! [ [ r#"file:///C:/ Users/ user/ project/doc/foo/struct.Foo.html"# ] ] ) ,
173
173
) ;
174
174
}
175
175
0 commit comments