Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 876175 - dev-util/sccache-0.3.0: error[E0599]: : no method named `to_rfc7231` found for struct `chrono::DateTime` in the current scope
Summary: dev-util/sccache-0.3.0: error[E0599]: : no method named `to_rfc7231` found fo...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-08 15:29 UTC by Samuel Bernardo
Modified: 2024-02-14 10:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,276.94 KB, text/x-log)
2022-10-08 15:29 UTC, Samuel Bernardo
Details
emerge.info (emerge.info,8.05 KB, text/plain)
2022-10-08 15:30 UTC, Samuel Bernardo
Details
emerge.pqv (emerge.pqv,240 bytes, text/plain)
2022-10-08 15:30 UTC, Samuel Bernardo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Bernardo 2022-10-08 15:29:48 UTC
Created attachment 822853 [details]
build.log

error[E0599]: no method named `to_rfc7231` found for struct `chrono::DateTime` in the current scope                                                               [197/6675]
   --> src/simples3/s3.rs:90:51                                                                                                                                             
    |                                                                                                                                                                       
90  |             let date = chrono::offset::Utc::now().to_rfc7231();                                                                                                       
    |                                                   ^^^^^^^^^^ help: there is an associated function with a similar name: `to_rfc3339`                                  
    |                                                                                                                                                                       
    = help: items from traits can only be used if the trait is implemented and in scope                                                                                     
note: `DateTimeExt` defines an item `to_rfc7231`, perhaps you need to implement it                                                                                          
   --> src/util.rs:510:1                                                                                                                                                    
    |                                                                                                                                                                       
510 | pub trait DateTimeExt {                                                                                                                                               
    | ^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                 
                                                                                                                                                                            
error[E0599]: no method named `to_rfc7231` found for struct `chrono::DateTime` in the current scope                                                                         
   --> src/simples3/s3.rs:124:47                                                                                                                                            
    |                                                                                                                                                                       
124 |         let date = chrono::offset::Utc::now().to_rfc7231();                                                                                                           
    |                                               ^^^^^^^^^^ help: there is an associated function with a similar name: `to_rfc3339`                                      
    |                                                                                                                                                                       
    = help: items from traits can only be used if the trait is implemented and in scope                                                                                     
note: `DateTimeExt` defines an item `to_rfc7231`, perhaps you need to implement it                                                                                          
   --> src/util.rs:510:1                                                                                                                                                    
    |                                                                                                                                                                       
510 | pub trait DateTimeExt {                                                                                                                                               
    | ^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                 
                                                                                                                                                                            
warning: unused import: `DateTimeExt`                                                                                                                                       
  --> src/simples3/s3.rs:17:19                                                                                                                                              
   |                                                                                                                                                                        
17 | use crate::util::{DateTimeExt, HeadersExt};                                                                                                                            
   |                   ^^^^^^^^^^^                                                                                                                                          
   |                                                                                                                                                                        
   = note: `#[warn(unused_imports)]` on by default                                                                                                                          

For more information about this error, try `rustc --explain E0599`.
Comment 1 Samuel Bernardo 2022-10-08 15:30:09 UTC
Created attachment 822856 [details]
emerge.info
Comment 2 Samuel Bernardo 2022-10-08 15:30:31 UTC
Created attachment 822859 [details]
emerge.pqv