Skip to content

Panic on startup #41

@matthiasbeyer

Description

@matthiasbeyer

let adguard_version = Version::parse(&version_str[1..]).unwrap();

This line panics on nixos because of index out of bounds:

thread 'main' panicked at src/welcome.rs:75:62:
byte index 1 is out of bounds of ``
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::str::slice_error_fail_rt
   3: core::str::slice_error_fail
   4: adguardian::welcome::check_version
   5: adguardian::welcome::welcome::{{closure}}
   6: tokio::runtime::park::CachedParkThread::block_on
   7: tokio::runtime::scheduler::multi_thread::MultiThread::block_on
   8: adguardian::main

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions