File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 6dbb0e86aec11050480beb76eade6fb805010ba7
3
3
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
4
- refs/heads/try: 3b5cfa3ecf4e44b251ce121ab5dcf53c35de8eea
4
+ refs/heads/try: aefbbc79a3d0c082e19fe3368604dab91333f8a9
5
5
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
6
6
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
7
7
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change @@ -507,16 +507,17 @@ impl Child {
507
507
///
508
508
/// # Examples
509
509
///
510
- /// ```no_run
510
+ /// ```should_panic
511
511
/// use std::process::{Command, Stdio};
512
512
///
513
513
/// let mut child = Command::new("/bin/cat")
514
514
/// .stdout(Stdio::piped())
515
515
/// .arg("file.txt")
516
516
/// .spawn()
517
- /// .expect( "failed to execute child" );
517
+ /// .unwrap_or_else(|e| { panic!( "failed to execute child: {}", e) } );
518
518
///
519
- /// let ecode = child.wait_with_output().expect("failed to wait on child");
519
+ /// let ecode = child.wait_with_output()
520
+ /// .unwrap_or_else(|e| { panic!("failed to wait on child: {}", e) });
520
521
///
521
522
/// assert!(ecode.success());
522
523
/// ```
You can’t perform that action at this time.
0 commit comments