pass args by ref

This commit is contained in:
dasha_uwu authored and Jason Volk committed 2025-09-23 05:16:29 +00:00
1 parent d6e95c51c0
commit 9c4d376bec
43 files changed
+97 -101

No files matched your search

+2 -2
View File
@@ -30,8 +30,8 @@ impl crate::Service for Service {
clippy::cast_sign_loss,
clippy::cast_possible_truncation
)]
fn build(args: crate::Args<'_>) -> Result<Arc<Self>> {
let cache = Cache::new(&args);
fn build(args: &crate::Args<'_>) -> Result<Arc<Self>> {
let cache = Cache::new(args);
Ok(Arc::new(Self {
cache: cache.clone(),
resolver: Resolver::build(args.server, cache)?,