Skip to content

Commit 1fb6a8f

Browse files
committed
Update clippy
1 parent 6f8b801 commit 1fb6a8f

File tree

4 files changed

+51
-37
lines changed

4 files changed

+51
-37
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ before_install:
1717
install:
1818
- pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
1919
- yarn install
20-
- cargo install --force diesel_cli --vers 0.13.0 --debug --no-default-features --features postgres && export PATH=$HOME/.cargo/bin:$PATH
20+
- cargo install --force diesel_cli --vers 0.14.0 --debug --no-default-features --features postgres && export PATH=$HOME/.cargo/bin:$PATH
2121
- cargo install --force rustfmt
2222
- rustfmt --version
2323

@@ -49,7 +49,7 @@ matrix:
4949
- cargo build
5050
- cargo test
5151
- yarn test
52-
- rust: nightly-2017-03-04
52+
- rust: nightly-2017-07-04
5353
env: CLIPPY=YESPLEASE
5454
script:
5555
- cargo rustc --lib --features "lint" -- -Zno-trans

Cargo.lock

Lines changed: 41 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ diesel_full_text_search = "0.13.0"
4747
serde_json = "1.0.0"
4848
serde_derive = "1.0.0"
4949
serde = "1.0.0"
50-
clippy = { version = "=0.0.118", optional = true }
50+
clippy = { version = "=0.0.142", optional = true }
5151
chrono = "0.3.0"
5252

5353
conduit = "0.8"

src/util/lazy_cell.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,16 @@ pub struct LazyCell<T> {
1515
inner: RefCell<Option<T>>,
1616
}
1717

18+
impl<T> Default for LazyCell<T> {
19+
fn default() -> Self {
20+
LazyCell { inner: RefCell::new(None) }
21+
}
22+
}
23+
1824
impl<T> LazyCell<T> {
1925
/// Creates a new empty lazy cell.
2026
pub fn new() -> LazyCell<T> {
21-
LazyCell { inner: RefCell::new(None) }
27+
LazyCell::default()
2228
}
2329

2430
/// Put a value into this cell.

0 commit comments

Comments
 (0)