Update to edition 2018
This commit is contained in:
parent
bc4a898c0a
commit
602c7f7ebe
41 changed files with 188 additions and 196 deletions
|
|
@ -3,10 +3,10 @@ use std::fmt;
|
|||
use std::io;
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
use command_runner::CommandRunner;
|
||||
use resources::Resource;
|
||||
use symbols::file::File as FileSymbol;
|
||||
use symbols::{Action, OwnedSymbolAction, Symbol, SymbolAction, SymbolRunner};
|
||||
use crate::command_runner::CommandRunner;
|
||||
use crate::resources::Resource;
|
||||
use crate::symbols::file::File as FileSymbol;
|
||||
use crate::symbols::{Action, OwnedSymbolAction, Symbol, SymbolAction, SymbolRunner};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum NginxServerError<E: Error> {
|
||||
|
|
@ -36,7 +36,7 @@ impl<E: Error> Error for NginxServerError<E> {
|
|||
}
|
||||
|
||||
impl<E: Error> fmt::Display for NginxServerError<E> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> {
|
||||
write!(f, "{}", self.description())
|
||||
}
|
||||
}
|
||||
|
|
@ -242,7 +242,7 @@ impl<'a, C: CommandRunner, T: AsRef<str>, P: AsRef<Path>> Symbol for NginxServer
|
|||
impl<'a, C: CommandRunner, T: AsRef<str>, P: AsRef<Path>> fmt::Display
|
||||
for NginxServer<'a, C, T, P>
|
||||
{
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> {
|
||||
write!(f, "Nginx server config")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue