cargo +nightly fix --features=bpf_c,cuda,erasure,chacha --edition-idioms

This commit is contained in:
Greg Fitzgerald
2018-12-08 22:44:20 -07:00
parent 1c2394227e
commit a8d6c75a24
37 changed files with 150 additions and 150 deletions

View File

@@ -62,7 +62,7 @@ impl RpcRequest {
client: &RpcClient,
id: u64,
params: Option<Value>,
) -> Result<Value, Box<error::Error>> {
) -> Result<Value, Box<dyn error::Error>> {
let request = self.build_request_json(id, params);
let mut response = client
@@ -116,7 +116,7 @@ pub enum RpcError {
}
impl fmt::Display for RpcError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "invalid")
}
}
@@ -126,7 +126,7 @@ impl error::Error for RpcError {
"invalid"
}
fn cause(&self) -> Option<&error::Error> {
fn cause(&self) -> Option<&dyn error::Error> {
// Generic error, underlying cause isn't tracked.
None
}