diff options
author | Joe Wilm <jwilm@users.noreply.github.com> | 2018-12-10 09:53:56 -0800 |
---|---|---|
committer | Christian Duerr <chrisduerr@users.noreply.github.com> | 2018-12-10 17:53:56 +0000 |
commit | 217ad9ec285b4923de1790b0976c8c793039c994 (patch) | |
tree | 440e0d6d35f119246d2b113fd01b431f4f9c2c38 /src/cli.rs | |
parent | 7ab0b448479c9705fa14003bda97040630710b7a (diff) | |
download | alacritty-217ad9ec285b4923de1790b0976c8c793039c994.tar.gz alacritty-217ad9ec285b4923de1790b0976c8c793039c994.zip |
Upgrade to Rust 2018
This resolves a lot of NLL issues, however full NLL will be necessary to
handle a couple of remaining issues.
Diffstat (limited to 'src/cli.rs')
-rw-r--r-- | src/cli.rs | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -11,11 +11,12 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -extern crate log; -use clap::{Arg, App}; -use index::{Line, Column}; -use config::{Dimensions, Shell}; -use window::{DEFAULT_TITLE, DEFAULT_CLASS}; +use ::log; +use clap::{Arg, App, crate_name, crate_version, crate_authors, crate_description}; + +use crate::index::{Line, Column}; +use crate::config::{Dimensions, Shell}; +use crate::window::{DEFAULT_TITLE, DEFAULT_CLASS}; use std::path::{Path, PathBuf}; use std::borrow::Cow; @@ -186,11 +187,11 @@ impl Options { self.dimensions } - pub fn command(&self) -> Option<&Shell> { + pub fn command(&self) -> Option<&Shell<'_>> { self.command.as_ref() } - pub fn config_path(&self) -> Option<Cow<Path>> { + pub fn config_path(&self) -> Option<Cow<'_, Path>> { self.config.as_ref().map(|p| Cow::Borrowed(p.as_path())) } } |