Skip to content

Commit

Permalink
Fix compiler warnings from Rustc bump
Browse files Browse the repository at this point in the history
  • Loading branch information
volks73 committed Sep 3, 2019
1 parent 4261e89 commit daef816
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ impl StdError for Error {
}
}

fn cause(&self) -> Option<&StdError> {
fn cause(&self) -> Option<&dyn StdError> {
match *self {
Error::Io(ref err) => Some(err),
Error::Mustache(ref err) => Some(err),
Expand Down
2 changes: 1 addition & 1 deletion src/print/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ use std::io::{self, Write};
use std::path::PathBuf;
use toml::Value;

fn destination(output: Option<&PathBuf>) -> Result<Box<Write>> {
fn destination(output: Option<&PathBuf>) -> Result<Box<dyn Write>> {
if let Some(ref output) = output {
trace!("An output path has been explicity specified");
let f = File::create(output)?;
Expand Down
2 changes: 1 addition & 1 deletion src/sign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ impl Execution {
fn msi(&self) -> Result<PathBuf> {
if let Some(ref i) = self.input {
trace!("The path to an installer to sign has been explicitly set");
let mut msi = PathBuf::from(i);
let msi = PathBuf::from(i);
if msi.exists() {
trace!("The installer exists");
Ok(msi)
Expand Down

0 comments on commit daef816

Please sign in to comment.