[CHORE] Format

This commit is contained in:
Ben C 2025-07-10 02:59:59 -04:00
parent c65c22abfe
commit 4617729bc4
No known key found for this signature in database
5 changed files with 15 additions and 28 deletions

4
flake.lock generated
View File

@ -59,9 +59,7 @@
},
"rust-overlay": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
"nixpkgs": ["nixpkgs"]
},
"locked": {
"lastModified": 1752115281,

View File

@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
packages = with pkgs; [
pkg-config
gobject-introspection
@ -25,7 +24,5 @@
export GIO_EXTRA_MODULES="${pkgs.dconf.lib}/lib/gio/modules:${pkgs.glib-networking}/lib/gio/modules"
'';
env.PKG_CONFIG_PATH =
with pkgs;
"${glib.dev}/lib/pkgconfig:${libsoup_3.dev}/lib/pkgconfig:${webkitgtk_4_1.dev}/lib/pkgconfig:${at-spi2-atk.dev}/lib/pkgconfig:${gtk3.dev}/lib/pkgconfig:${gdk-pixbuf.dev}/lib/pkgconfig:${cairo.dev}/lib/pkgconfig:${pango.dev}/lib/pkgconfig:${harfbuzz.dev}/lib/pkgconfig";
env.PKG_CONFIG_PATH = with pkgs; "${glib.dev}/lib/pkgconfig:${libsoup_3.dev}/lib/pkgconfig:${webkitgtk_4_1.dev}/lib/pkgconfig:${at-spi2-atk.dev}/lib/pkgconfig:${gtk3.dev}/lib/pkgconfig:${gdk-pixbuf.dev}/lib/pkgconfig:${cairo.dev}/lib/pkgconfig:${pango.dev}/lib/pkgconfig:${harfbuzz.dev}/lib/pkgconfig";
}

View File

@ -14,8 +14,7 @@ rustPlatform.buildRustPackage rec {
version = "0.15.1";
# Prevent unneeded rebuilds
src =
with lib.fileset;
src = with lib.fileset;
toSource {
root = ../../.;
fileset = unions [
@ -35,10 +34,12 @@ rustPlatform.buildRustPackage rec {
doCheck = false;
nativeBuildInputs = [
pkg-config
installShellFiles
] ++ lib.optional wrapWithMono makeWrapper;
nativeBuildInputs =
[
pkg-config
installShellFiles
]
++ lib.optional wrapWithMono makeWrapper;
buildInputs = [
openssl

View File

@ -108,9 +108,7 @@ pub async fn send_analytics_event(
match resp {
Ok(resp) => {
if resp.status().is_success() {
debug!(
"Successfully Sent Analytics Event {event_name:?} for {unique_name}"
);
debug!("Successfully Sent Analytics Event {event_name:?} for {unique_name}");
} else {
warn!(
"Couldn't Send Analytics Event For {}! {}",
@ -120,16 +118,12 @@ pub async fn send_analytics_event(
}
}
Err(why) => {
let err_text = format!(
"Couldn't Send Analytics Event For {unique_name}! {why:?}"
)
.replace(api_key, "***");
let err_text = format!("Couldn't Send Analytics Event For {unique_name}! {why:?}")
.replace(api_key, "***");
warn!("{err_text}");
}
}
} else {
debug!(
"Skipping Analytics As The ANALYTICS_API_KEY Is Null ({event_name:?})"
);
debug!("Skipping Analytics As The ANALYTICS_API_KEY Is Null ({event_name:?})");
}
}

View File

@ -234,10 +234,7 @@ fn main() -> Result<(), Box<dyn Error>> {
let log_path = app_path.join(format!("crash_log_{timestamp_str}.txt"));
let mut file = File::create(&log_path)?;
file.write_all(
format!(
"The manager encountered a fatal error when starting: {why:?}"
)
.as_bytes(),
format!("The manager encountered a fatal error when starting: {why:?}").as_bytes(),
)?;
drop(file);
opener::open(&log_path)?;