@@ -42,14 +42,14 @@ impl TestCase {
42
42
43
43
fn stop_watch ( & mut self ) -> Vec < watch:: ChangeEvent > {
44
44
self . try_stop_watch ( Duration :: from_secs ( 10 ) )
45
- . expect ( "Expected watch changes but observed none. " )
45
+ . expect ( "Expected watch changes but observed none" )
46
46
}
47
47
48
48
fn try_stop_watch ( & mut self , timeout : Duration ) -> Option < Vec < watch:: ChangeEvent > > {
49
49
let watcher = self
50
50
. watcher
51
51
. take ( )
52
- . expect ( "Cannot call `stop_watch` more than once. " ) ;
52
+ . expect ( "Cannot call `stop_watch` more than once" ) ;
53
53
54
54
let mut all_events = self
55
55
. changes_receiver
@@ -72,7 +72,7 @@ impl TestCase {
72
72
#[ cfg( unix) ]
73
73
fn take_watch_changes ( & self ) -> Vec < watch:: ChangeEvent > {
74
74
self . try_take_watch_changes ( Duration :: from_secs ( 10 ) )
75
- . expect ( "Expected watch changes but observed none. " )
75
+ . expect ( "Expected watch changes but observed none" )
76
76
}
77
77
78
78
fn try_take_watch_changes ( & self , timeout : Duration ) -> Option < Vec < watch:: ChangeEvent > > {
@@ -150,14 +150,14 @@ where
150
150
let absolute_path = workspace_path. join ( relative_path) ;
151
151
if let Some ( parent) = absolute_path. parent ( ) {
152
152
std:: fs:: create_dir_all ( parent) . with_context ( || {
153
- format ! ( "Failed to create parent directory for file ' {relative_path}'." , )
153
+ format ! ( "Failed to create parent directory for file ` {relative_path}`" )
154
154
} ) ?;
155
155
}
156
156
157
157
let mut file = std:: fs:: File :: create ( absolute_path. as_std_path ( ) )
158
- . with_context ( || format ! ( "Failed to open file ' {relative_path}' " ) ) ?;
158
+ . with_context ( || format ! ( "Failed to open file ` {relative_path}` " ) ) ?;
159
159
file. write_all ( content. as_bytes ( ) )
160
- . with_context ( || format ! ( "Failed to write to file ' {relative_path}' " ) ) ?;
160
+ . with_context ( || format ! ( "Failed to write to file ` {relative_path}` " ) ) ?;
161
161
file. sync_data ( ) ?;
162
162
}
163
163
@@ -194,7 +194,7 @@ where
194
194
195
195
let root_path = SystemPath :: from_std_path ( temp_dir. path ( ) ) . ok_or_else ( || {
196
196
anyhow ! (
197
- "Temp directory '{}' is not a valid UTF-8 path." ,
197
+ "Temporary directory `{}` is not a valid UTF-8 path." ,
198
198
temp_dir. path( ) . display( )
199
199
)
200
200
} ) ?;
@@ -209,7 +209,7 @@ where
209
209
let workspace_path = root_path. join ( "workspace" ) ;
210
210
211
211
std:: fs:: create_dir_all ( workspace_path. as_std_path ( ) )
212
- . with_context ( || format ! ( "Failed to create workspace directory ' {workspace_path}'" , ) ) ?;
212
+ . with_context ( || format ! ( "Failed to create workspace directory ` {workspace_path}`" ) ) ?;
213
213
214
214
setup_files
215
215
. setup ( & root_path, & workspace_path)
@@ -233,7 +233,7 @@ where
233
233
} ) )
234
234
{
235
235
std:: fs:: create_dir_all ( path. as_std_path ( ) )
236
- . with_context ( || format ! ( "Failed to create search path ' {path}' " ) ) ?;
236
+ . with_context ( || format ! ( "Failed to create search path ` {path}` " ) ) ?;
237
237
}
238
238
239
239
let configuration = Configuration {
@@ -665,7 +665,7 @@ fn directory_deleted() -> anyhow::Result<()> {
665
665
666
666
let bar = case. system_file ( case. workspace_path ( "bar.py" ) ) . unwrap ( ) ;
667
667
668
- assert ! ( resolve_module( case. db( ) . upcast( ) , ModuleName :: new_static( "sub.a" ) . unwrap( ) ) . is_some( ) , ) ;
668
+ assert ! ( resolve_module( case. db( ) . upcast( ) , ModuleName :: new_static( "sub.a" ) . unwrap( ) ) . is_some( ) ) ;
669
669
670
670
let sub_path = case. workspace_path ( "sub" ) ;
671
671
0 commit comments