mirror of https://git.sr.ht/~stygianentity/bincode
Made the test stage throw an error on warnings
This commit is contained in:
parent
4807ea6be2
commit
02a9b2cb71
|
|
@ -100,7 +100,10 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"run": "cargo test-all-features",
|
"run": "cargo test-all-features",
|
||||||
"name": "Run `cargo test` on all features"
|
"name": "Run `cargo test` on all features",
|
||||||
|
"env": {
|
||||||
|
"RUSTFLAGS": "-D warnings"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,9 @@ use crate::{
|
||||||
error::{DecodeError, EncodeError},
|
error::{DecodeError, EncodeError},
|
||||||
Config,
|
Config,
|
||||||
};
|
};
|
||||||
use alloc::{borrow::Cow, boxed::Box, collections::*, rc::Rc, string::String, sync::Arc, vec::Vec};
|
#[cfg(feature = "atomic")]
|
||||||
|
use alloc::sync::Arc;
|
||||||
|
use alloc::{borrow::Cow, boxed::Box, collections::*, rc::Rc, string::String, vec::Vec};
|
||||||
|
|
||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
struct VecWriter {
|
struct VecWriter {
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ mod utils;
|
||||||
use alloc::borrow::Cow;
|
use alloc::borrow::Cow;
|
||||||
use alloc::collections::*;
|
use alloc::collections::*;
|
||||||
use alloc::rc::Rc;
|
use alloc::rc::Rc;
|
||||||
|
#[cfg(feature = "atomic")]
|
||||||
use alloc::sync::Arc;
|
use alloc::sync::Arc;
|
||||||
use utils::{the_same, the_same_with_comparer};
|
use utils::{the_same, the_same_with_comparer};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue