Update to edition 2018
This commit is contained in:
parent
bc4a898c0a
commit
602c7f7ebe
41 changed files with 188 additions and 196 deletions
|
|
@ -4,8 +4,8 @@ use std::fs;
|
|||
use std::io;
|
||||
use std::path::Path;
|
||||
|
||||
use resources::Resource;
|
||||
use symbols::{Action, OwnedSymbolAction, Symbol, SymbolAction, SymbolRunner};
|
||||
use crate::resources::Resource;
|
||||
use crate::symbols::{Action, OwnedSymbolAction, Symbol, SymbolAction, SymbolRunner};
|
||||
|
||||
pub struct Dir<D: AsRef<Path>> {
|
||||
path: D,
|
||||
|
|
@ -64,7 +64,7 @@ impl<D: AsRef<Path>> Symbol for Dir<D> {
|
|||
}
|
||||
|
||||
impl<D: AsRef<Path>> fmt::Display for Dir<D> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> {
|
||||
write!(f, "Dir {}", self.path.as_ref().display())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue