• Xu Guangxin's avatar
    fix build for cargo 1.13.0 · c83f7cc7
    Xu Guangxin authored
    we will have following build error on cargo 1.13.0
    this patch will fix it
    
    $cargo build --release
    
       Compiling rav1e v0.1.0 (/home/thomas/codec/rav1e)
    error[E0658]: imports can only refer to extern crate names passed with `--extern` on stable channel (see issue #53130)
      --> src/partition.rs:54:5
       |
    25 | / pub enum RefType {
    26 | |   INTRA_FRAME = 0,
    27 | |   LAST_FRAME = 1,
    28 | |   LAST2_FRAME = 2,
    ...  |
    34 | |   NONE_FRAME = 8,
    35 | | }
       | |_- not an extern crate passed with `--extern`
    ...
    54 |   use RefType::*;
       |       ^^^^^^^
       |
    note: this import refers to the enum defined here
      --> src/partition.rs:25:1
       |
    25 | / pub enum RefType {
    26 | |   INTRA_FRAME = 0,
    27 | |   LAST_FRAME = 1,
    28 | |   LAST2_FRAME = 2,
    ...  |
    34 | |   NONE_FRAME = 8,
    35 | | }
       | |_^
    
    error: aborting due to previous error
    
    For more information about this error, try `rustc --explain E0658`.
    error: Could not compile `rav1e`.
    c83f7cc7
Name
Last commit
Last update
benches Loading commit data...
data Loading commit data...
doc Loading commit data...
ivf Loading commit data...
src Loading commit data...
tools Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
Cargo.toml Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
appveyor.yml Loading commit data...
build.rs Loading commit data...
build.sh Loading commit data...
clippy.toml Loading commit data...
license_template.txt Loading commit data...
rustfmt.toml Loading commit data...