File tree Expand file tree Collapse file tree 4 files changed +51
-37
lines changed Expand file tree Collapse file tree 4 files changed +51
-37
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ before_install:
17
17
install :
18
18
- pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
19
19
- 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
21
21
- cargo install --force rustfmt
22
22
- rustfmt --version
23
23
@@ -49,7 +49,7 @@ matrix:
49
49
- cargo build
50
50
- cargo test
51
51
- yarn test
52
- - rust : nightly-2017-03 -04
52
+ - rust : nightly-2017-07 -04
53
53
env : CLIPPY=YESPLEASE
54
54
script :
55
55
- cargo rustc --lib --features "lint" -- -Zno-trans
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ diesel_full_text_search = "0.13.0"
47
47
serde_json = " 1.0.0"
48
48
serde_derive = " 1.0.0"
49
49
serde = " 1.0.0"
50
- clippy = { version = " =0.0.118 " , optional = true }
50
+ clippy = { version = " =0.0.142 " , optional = true }
51
51
chrono = " 0.3.0"
52
52
53
53
conduit = " 0.8"
Original file line number Diff line number Diff line change @@ -15,10 +15,16 @@ pub struct LazyCell<T> {
15
15
inner : RefCell < Option < T > > ,
16
16
}
17
17
18
+ impl < T > Default for LazyCell < T > {
19
+ fn default ( ) -> Self {
20
+ LazyCell { inner : RefCell :: new ( None ) }
21
+ }
22
+ }
23
+
18
24
impl < T > LazyCell < T > {
19
25
/// Creates a new empty lazy cell.
20
26
pub fn new ( ) -> LazyCell < T > {
21
- LazyCell { inner : RefCell :: new ( None ) }
27
+ LazyCell :: default ( )
22
28
}
23
29
24
30
/// Put a value into this cell.
You can’t perform that action at this time.
0 commit comments