Repository: time-rs/time (language: rust)

Issue:
time 0.2.8 fails to compile when cfg-if is pinned to 0.1.9
I'm getting the following error when trying to compile using time 0.2.8. time 0.2.7 works just fine.

```
error: expected an item keyword
   --> /Users/bryan/.cargo/registry/src/github.com-1ecc6299db9ec823/time-0.2.8/src/utc_offset.rs:366:13
    |
366 |             let tm = timestamp_to_tm(datetime.timestamp())?;
    |             ^^^

error: aborting due to previous error

error: could not compile `time`.
warning: build failed, waiting for other jobs to finish...
error: build failed
```

So far, this is as minimal of a reproduction as I can get. The following `Cargo.toml` with an empty lib.rs file.

```toml
[package]
name = "example"
version = "0.1.0"
edition = "2018"

[dependencies]
#time = "=0.2.7"
time = "=0.2.8"
phonenumber = "0.2"
```


Discussion / hints:
Confirmed and investigating.
phonenumber 0.2 lead to nom 0.5.
nom 0.5 lead to lexical-core = "^0.6.0".

So this is a more reduced reproduction.

```
[dependencies]
#time = "=0.2.7"
time = "=0.2.8"
#phonenumber = "0.2"
#nom = "5"
#nom = { version = "5", default-features = false, features = ["lexical"] }
lexical-core = "^0.6.0"
```
Note that if it's an issue with nom versions, this is not an issue with the time crate directly, but rather upstream and/or other crates.
Reduced further, this also fails:

```
[dependencies]
#time = "=0.2.7"
time = "=0.2.8"
cfg-if = "=0.1.9"
```

And that, finally, makes a bit of sense, because the error message we're getting is within a cfg-if block.

Fix patch:
diff --git a/Cargo.toml b/Cargo.toml
index a868fb7ba..3d5be6d7b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -27,7 +27,7 @@ std = ["libc", "winapi", "stdweb", "standback/std"]
 __doc = []
 
 [dependencies]
-cfg-if = "0.1"
+cfg-if = "0.1.10"
 rand = { version = "0.7", optional = true, default-features = false }
 rustversion = "1"
 serde = { version = "1", optional = true, default-features = false, features = ["derive"] }


Test patch: