-
Notifications
You must be signed in to change notification settings - Fork 3
Update deps, and fix two warnings #12
base: flatcar-master
Are you sure you want to change the base?
Conversation
Signed-off-by: Vincent Batts <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some questions :)
@@ -1,2001 +1,2001 @@ | |||
# This file is automatically @generated by Cargo. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to be this doesn't update any dependencies, but only format of Cargo.lock
file. I guess https://github.com/kinvolk/afterburn/blob/flatcar-master/Cargo.toml would have to be modified to update the dependencies.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Depends on whether the versions are specified exactly in Cargo.toml
this here can pull in updates. I didn't look if that's the case but anyway we need to make changes in the ebuild file if we want to update some dependency version. Also it's always good to test if the ebuild still works when you do changes in a project and bump the ebuild to the latest commit, or it becomes a trap for the next person woring on it.
- fix the bare provider - remove redundant import of tempfile on rustc 1.50.0 (cb75ad5db 2021-02-10): ```shell warning: trait objects without an explicit `dyn` are deprecated --> src/metadata.rs:36:61 | 36 | pub fn fetch_metadata(provider: &str) -> errors::Result<Box<providers::MetadataProvider>> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn providers::MetadataProvider` | = note: `#[warn(bare_trait_objects)]` on by default warning: the item `tempfile` is imported redundantly --> src/providers/mod.rs:101:9 | 101 | use tempfile; | ^^^^^^^^ | ::: src/main.rs:39:1 | 39 | extern crate tempfile; | ---------------------- the item `tempfile` is already imported here | = note: `#[warn(unused_imports)]` on by default ``` Signed-off-by: Vincent Batts <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Plain cargo build
and cargo test
work well.
Build test via coreos-overlay works well too.
Signed-off-by: Vincent Batts [email protected]