Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Update deps, and fix two warnings #12

Open
wants to merge 2 commits into
base: flatcar-master
Choose a base branch
from
Open

Conversation

vbatts
Copy link

@vbatts vbatts commented Mar 8, 2021

Signed-off-by: Vincent Batts [email protected]

Signed-off-by: Vincent Batts <[email protected]>
@vbatts vbatts requested a review from a team March 8, 2021 04:55
Copy link

@invidian invidian left a 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.
Copy link

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.

Copy link
Contributor

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.

src/metadata.rs Show resolved Hide resolved
src/providers/mod.rs Show resolved Hide resolved
- 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]>
Copy link

@dongsupark dongsupark left a 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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants