Skip to content

Commit

Permalink
Finish removal of rust 2018 idioms
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Sep 16, 2020
1 parent ba1d883 commit 0d1699e
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion git-object/src/borrowed/id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl<'de: 'a, 'a> serde::Deserialize<'de> for Id<'a> {
}
impl<'de: 'a, 'a> serde::de::Visitor<'de> for __Visitor<'de, 'a> {
type Value = Id<'a>;
fn expecting(&self, __formatter: &mut serde::export::Formatter) -> serde::export::fmt::Result {
fn expecting(&self, __formatter: &mut serde::export::Formatter<'_>) -> serde::export::fmt::Result {
serde::export::Formatter::write_str(__formatter, "tuple struct Id")
}
#[inline]
Expand Down
1 change: 1 addition & 0 deletions git-tui/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![forbid(unsafe_code)]
#![deny(rust_2018_idioms)]

fn main() {
unimplemented!();
Expand Down
1 change: 1 addition & 0 deletions git-url/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![forbid(unsafe_code)]
#![deny(rust_2018_idioms)]

use std::{convert::TryFrom, fmt};

Expand Down
1 change: 1 addition & 0 deletions gitoxide-core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![forbid(unsafe_code)]
#![deny(rust_2018_idioms)]

use std::str::FromStr;

Expand Down
1 change: 1 addition & 0 deletions src/plumbing-cli.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![forbid(unsafe_code)]
#![deny(rust_2018_idioms)]

mod plumbing;
mod shared;
Expand Down
1 change: 1 addition & 0 deletions src/porcelain-cli.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![forbid(unsafe_code)]
#![deny(rust_2018_idioms)]

mod porcelain;

Expand Down
2 changes: 1 addition & 1 deletion tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* [x] locate object and figure out how to deal with differences of ODBs databases
* [x] make NLL issue work
* [ ] Nice access to compound::Object
* [ ] Add #![deny(rust_2018_idioms)] everywhere
* [x] Add #![deny(rust_2018_idioms)] everywhere
* [ ] alternate DB (location - it's really must following the chain until a compound DB can be created)
* [ ] loose upgrade: jwalk powered iteration behind a feature flag
* **git-ref**
Expand Down

0 comments on commit 0d1699e

Please sign in to comment.