File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ impl Connection {
176
176
#[ inline]
177
177
pub fn input ( & self ) -> Input {
178
178
Input {
179
- scanner : self . scanner . lock ( ) . expect ( "mutex is not poisoned" ) ,
179
+ scanner : self . scanner . lock ( ) . expect ( "can't lock poisoned mutex " ) ,
180
180
}
181
181
}
182
182
@@ -187,7 +187,7 @@ impl Connection {
187
187
#[ inline]
188
188
pub fn output ( & self ) -> Output {
189
189
Output {
190
- writer : self . writer . lock ( ) . expect ( "mutex is not poisoned" ) ,
190
+ writer : self . writer . lock ( ) . expect ( "can't lock poisoned mutex " ) ,
191
191
}
192
192
}
193
193
Original file line number Diff line number Diff line change @@ -156,6 +156,9 @@ impl RawConfig {
156
156
}
157
157
158
158
/// Apply the options to create a new configuration.
159
+ ///
160
+ /// If the options do not requires changes to the current configuration,
161
+ /// this method return `None`.
159
162
pub fn apply ( & self , options : & Options ) -> Option < Self > {
160
163
let mut state = self . state ;
161
164
You can’t perform that action at this time.
0 commit comments