Skip to content

Commit

Permalink
fix: Address needles_borrow warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Jul 31, 2021
1 parent 49aa7ea commit 2d14524
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/assert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ impl Assert {
fn stdout_impl(self, pred: &dyn predicates_core::Predicate<[u8]>) -> AssertResult {
{
let actual = &self.output.stdout;
if let Some(case) = pred.find_case(false, &actual) {
if let Some(case) = pred.find_case(false, actual) {
return Err(self.into_error(AssertReason::UnexpectedStdout {
case_tree: CaseTree(case.tree()),
}));
Expand Down Expand Up @@ -558,7 +558,7 @@ impl Assert {
fn stderr_impl(self, pred: &dyn predicates_core::Predicate<[u8]>) -> AssertResult {
{
let actual = &self.output.stderr;
if let Some(case) = pred.find_case(false, &actual) {
if let Some(case) = pred.find_case(false, actual) {
return Err(self.into_error(AssertReason::UnexpectedStderr {
case_tree: CaseTree(case.tree()),
}));
Expand Down
2 changes: 1 addition & 1 deletion src/cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ impl<'c> OutputOkExt for &'c mut Command {
panic!(
"Completed successfully:\ncommand=`{:?}`\nstdin=```{}```\nstdout=```{}```",
self.cmd,
DebugBytes::new(&stdin),
DebugBytes::new(stdin),
DebugBytes::new(&output.stdout)
)
} else {
Expand Down

0 comments on commit 2d14524

Please sign in to comment.