@@ -170,7 +170,7 @@ pub enum Infallible {}
170
170
impl std:: fmt:: Display for Infallible {
171
171
#[ inline]
172
172
fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
173
- write ! ( f, "Operation that can't fail just failed" )
173
+ write ! ( f, "operation that can't fail just failed" )
174
174
}
175
175
}
176
176
@@ -232,8 +232,8 @@ impl std::fmt::Display for LockFailed {
232
232
#[ inline]
233
233
fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
234
234
match self {
235
- LockFailed :: Timeout ( wait) => write ! ( f, "Failed to acquire lock within {:?}" , wait) ,
236
- LockFailed :: Pessimistic => write ! ( f, "Failed to acquire lock, it was already held. " ) ,
235
+ LockFailed :: Timeout ( wait) => write ! ( f, "failed to acquire lock within {:?}" , wait) ,
236
+ LockFailed :: Pessimistic => write ! ( f, "failed to acquire lock, it was already held" ) ,
237
237
}
238
238
}
239
239
}
@@ -559,13 +559,13 @@ mod local_cell {
559
559
match self {
560
560
LocalCellError :: DifferentThread { original, current } => write ! (
561
561
f,
562
- "Accessing from the wrong thread, expected {:?} found {:?}" ,
562
+ "accessing from the wrong thread, expected {:?} found {:?}" ,
563
563
original, current
564
564
) ,
565
565
LocalCellError :: BorrowFailed => write ! (
566
566
f,
567
- "Borrow failed; a &mut reference was requested, but one already exists. Cause is likely a re-entrant call \
568
- (e.g. a GDNative Rust method calls to GDScript, which again calls a Rust method on the same object). "
567
+ "borrow failed; a &mut reference was requested, but one already exists. The cause is likely a re-entrant call \
568
+ (e.g. a GDNative Rust method calls to GDScript, which again calls a Rust method on the same object)"
569
569
) ,
570
570
}
571
571
}
0 commit comments