File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
branches/batch/src/libcore Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
29
29
refs/heads/issue-18208-method-dispatch-2: 9e1eae4fb9b6527315b4441cf8a0f5ca911d1671
30
30
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
31
31
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
32
- refs/heads/batch: 064c21efd257dfd210e88b2a0a015f0767980853
32
+ refs/heads/batch: 1217007c8335ec2b3097583ff3e0ad15a35af26e
33
33
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34
34
refs/heads/beta: 44a287e6eb22ec3c2a687fc156813577464017f7
35
35
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
Original file line number Diff line number Diff line change 178
178
//! fn write_info(info: &Info) -> Result<(), IoError> {
179
179
//! let mut file = File::open_mode(&Path::new("my_best_friends.txt"), Open, Write);
180
180
//! // Early return on error
181
- //! match file.write_line(format!("name: {}", info.name).as_slice()) {
182
- //! Ok(_) => (),
183
- //! Err(e) => return Err(e)
181
+ //! if let Err(e) = file.write_line(format!("name: {}", info.name).as_slice()) {
182
+ //! return Err(e)
184
183
//! }
185
- //! match file.write_line(format!("age: {}", info.age).as_slice()) {
186
- //! Ok(_) => (),
187
- //! Err(e) => return Err(e)
184
+ //! if let Err(e) = file.write_line(format!("age: {}", info.age).as_slice()) {
185
+ //! return Err(e)
188
186
//! }
189
187
//! return file.write_line(format!("rating: {}", info.rating).as_slice());
190
188
//! }
You can’t perform that action at this time.
0 commit comments