Package Details: power-options-daemon 1.1.0-1

Git Clone URL: https://aur.archlinux.org/power-options-daemon.git (read-only, click to copy)
Package Base: power-options-daemon
Description: The core daemon for Power Options, a blazingly fast power management solution.
Upstream URL: https://github.com/thealexdev23/power-options
Licenses: MIT
Conflicts: power-options-daemon-git
Provides: power-options-daemon
Submitter: TheAlexDev23
Maintainer: TheAlexDev23
Last Packager: TheAlexDev23
Votes: 2
Popularity: 1.87
First Submitted: 2024-09-07 11:21 (UTC)
Last Updated: 2024-09-17 19:37 (UTC)

Dependencies (11)

Sources (1)

Latest Comments

webman commented on 2024-09-16 05:38 (UTC)

@TheAlexDev23 Rust version was too old, upgraded to the latest and everything works. It had 1.77.1 installed.

TheAlexDev23 commented on 2024-09-15 08:25 (UTC) (edited on 2024-09-15 10:10 (UTC) by TheAlexDev23)

@webman what rustc version do you have?

webman commented on 2024-09-15 02:52 (UTC)

I am unable to compile:


error[E0716]: temporary value dropped while borrowed
   --> crates/power-daemon/src/profile.rs:548:18
    |
546 |         let firmware_parameters = if let Some(power_scheme) = self.power_scheme {
    |             ------------------- borrow later stored here
547 |             if uses_iwlmvm {
548 |                 &format!("power_scheme={}", power_scheme)
    |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use
549 |             } else if power_scheme == 3 {
    |             - temporary value is freed at the end of this statement
    |
    = note: consider using a `let` binding to create a longer lived value
    = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0716`.