Bustage fix: Build against Rust 1.25.
This commit is contained in:
parent
8cc0e5a64e
commit
f041dfe509
2 changed files with 8 additions and 8 deletions
|
@ -90,7 +90,7 @@ pub fn run() -> i32 {
|
||||||
match last_arg {
|
match last_arg {
|
||||||
Some("-d") => {
|
Some("-d") => {
|
||||||
last_arg = None;
|
last_arg = None;
|
||||||
if let Some(k) = &key {
|
if let &Some(ref k) = &key {
|
||||||
Some(command_parser::Command::OpenEncrypted(arg.clone(), k.clone()))
|
Some(command_parser::Command::OpenEncrypted(arg.clone(), k.clone()))
|
||||||
} else {
|
} else {
|
||||||
Some(command_parser::Command::Open(arg.clone()))
|
Some(command_parser::Command::Open(arg.clone()))
|
||||||
|
|
|
@ -407,22 +407,22 @@ impl Repl {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn open(&mut self, path: impl Into<String>) -> ::mentat::errors::Result<()> {
|
fn open<T>(&mut self, path: T) -> ::mentat::errors::Result<()> where T: Into<String> {
|
||||||
self.open_common(false, path.into(), None)
|
self.open_common(false, path.into(), None)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn open_empty(&mut self, path: impl Into<String>)
|
fn open_empty<T>(&mut self, path: T)
|
||||||
-> ::mentat::errors::Result<()> {
|
-> ::mentat::errors::Result<()> where T: Into<String> {
|
||||||
self.open_common(true, path.into(), None)
|
self.open_common(true, path.into(), None)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn open_with_key(&mut self, path: impl Into<String>, encryption_key: impl AsRef<str>)
|
fn open_with_key<T, U>(&mut self, path: T, encryption_key: U)
|
||||||
-> ::mentat::errors::Result<()> {
|
-> ::mentat::errors::Result<()> where T: Into<String>, U: AsRef<str> {
|
||||||
self.open_common(false, path.into(), Some(encryption_key.as_ref()))
|
self.open_common(false, path.into(), Some(encryption_key.as_ref()))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn open_empty_with_key(&mut self, path: impl Into<String>, encryption_key: impl AsRef<str>)
|
fn open_empty_with_key<T, U>(&mut self, path: T, encryption_key: U)
|
||||||
-> ::mentat::errors::Result<()> {
|
-> ::mentat::errors::Result<()> where T: Into<String>, U: AsRef<str> {
|
||||||
self.open_common(true, path.into(), Some(encryption_key.as_ref()))
|
self.open_common(true, path.into(), Some(encryption_key.as_ref()))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue