Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nightly warnings related to lifetimes #27

Merged
merged 1 commit into from
Sep 2, 2015
Merged

Commits on Sep 2, 2015

  1. Fix nightly warnings related to lifetimes

    The following warnings appear:
    
    ```
    src/platform/mod.rs:7:5: 7:56 warning: the trait `core::marker::Sized` is not implemented for the type `Self` [E0277]
    src/platform/mod.rs:7     fn create_headless() -> Result<Self, &'static str>;
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/platform/mod.rs:7:5: 7:56 help: run `rustc --explain E0277` to see a detailed explanation
    src/platform/mod.rs:7:5: 7:56 note: `Self` does not have a constant size known at compile-time
    src/platform/mod.rs:7     fn create_headless() -> Result<Self, &'static str>;
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/platform/mod.rs:7:5: 7:56 note: this warning results from recent bug fixes and clarifications; it will become a HARD ERROR in the next release. See RFC 1214 for details.
    src/platform/mod.rs:7     fn create_headless() -> Result<Self, &'static str>;
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/platform/mod.rs:7:5: 7:56 note: required by `core::result::Result`
    src/platform/mod.rs:7     fn create_headless() -> Result<Self, &'static str>;
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ```
    
    ...because of:
    
    rust-lang/rfcs#1214
    frewsxcv committed Sep 2, 2015
    Configuration menu
    Copy the full SHA
    fc5cf8c View commit details
    Browse the repository at this point in the history