mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-13 09:52:00 -04:00
Fix some clippy::pedantic warnings
This commit is contained in:
parent
d3152cb38d
commit
127eab4863
16 changed files with 161 additions and 166 deletions
|
@ -7,10 +7,12 @@
|
|||
|
||||
use zbus::fdo;
|
||||
|
||||
#[allow(clippy::needless_pass_by_value)]
|
||||
pub fn to_zbus_fdo_error<S: ToString>(error: S) -> fdo::Error {
|
||||
fdo::Error::Failed(error.to_string())
|
||||
}
|
||||
|
||||
#[allow(clippy::needless_pass_by_value)]
|
||||
pub fn to_zbus_error<S: ToString>(error: S) -> zbus::Error {
|
||||
zbus::Error::Failure(error.to_string())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue