Skip to content

Build from source with warning #7

Description

@Lucid-A
uname -a
Linux ubuntu2204 6.8.0-40-generic #40~22.04.3-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 30 17:30:19 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

When building performance version on ubuntu 22.04 with Rust 1.96.0, comes with warning:

Compiling ffetch v0.7.0 (/home/lucida/Downloads/ffetch)
warning: variable `URL` should have a snake case name
 --> src/platform.rs:6:18
  |
6 | fn download_file(URL: &str, out: &str) -> bool {
  |                  ^^^ help: convert the identifier to snake case: `url`
  |
  = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default

warning: `ffetch` (bin "ffetch") generated 1 warning
    Finished `performance` profile [optimized] target(s) in 1.54s
Build complete: /home/lucida/Downloads/ffetch/target/performance/ffetch

And after finishing compiling, when running ffetch, comes fatal error:

For extra configuration docs or example configs: 
https://github.com/0l3d/ffetch
Thanks for using F-Fetch! We'll download the ascii for your system. Please wait...

thread 'main' (2198111) panicked at src/main.rs:14:10:
Failed to read file.: Os { code: 2, kind: NotFound, message: "No such file or directory" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aborted (core dumped)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions