Skip to content

Conversation

@ValHeimer
Copy link
Contributor

@ValHeimer ValHeimer commented Apr 21, 2021

Hi,

Since the commit 514735e which remove the "default features" for the dependency 'chrono', I now have this error :

imap-3.0.0-alpha.3/src/client.rs:202:37
    format!(" \"{}\"", date.format("%d-%h-%Y %T %z"))
                              ^^^^ method not found in `DateTime<FixedOffset>>` 

So I think we have to add back the 'std' feature to 'chrono'

chrono = {version = "0.4", default-features = false, features = ["std"]}

(I know that I could add this dependency to my project Cargo.toml (and I did), but I think this should be in rust-imap)


This change is Reviewable

Hi,

Since the commit 514735e which remove the "default features" for the dependency 'chrono', I now have this error : 

```
imap-3.0.0-alpha.3/src/client.rs:202:37
    format!(" \"{}\"", date.format("%d-%h-%Y %T %z"))
                              ^^^^ method not found in `DateTime<FixedOffset>>` 
```

So I think we have to add back the 'std' feature to 'chrono'
```
chrono = {version = "0.4", default-features = false, features = ["std"]}
```

(I know that I could add this dependency to my project Cargo.toml (and I did), but I think this should be in rust-imap)
@codecov
Copy link

codecov bot commented Apr 21, 2021

Codecov Report

Merging #195 (4b8685f) into master (2898e19) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #195   +/-   ##
=======================================
  Coverage   77.70%   77.70%           
=======================================
  Files          15       15           
  Lines        1722     1722           
=======================================
  Hits         1338     1338           
  Misses        384      384           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2898e19...4b8685f. Read the comment docs.

@jonhoo
Copy link
Owner

jonhoo commented Apr 21, 2021

Huh, interesting. @alexwennerberg I wonder why you didn't run into this?

@alexwennerberg
Copy link
Contributor

@jonhoo Hmm, I’m not sure, my apologies though! Go ahead and add it back.

@jonhoo jonhoo merged commit 18ebf56 into jonhoo:master Apr 21, 2021
@jonhoo
Copy link
Owner

jonhoo commented Apr 21, 2021

@ValHeimer Thanks! Will be part of the next alpha/release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants