From 0c7afe3bd5197363c5df9560cca9ed5608dd58bf Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Fri, 10 Jun 2022 10:40:18 -0400 Subject: ship: Make Star a borrow --- src/ship.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ship.rs') diff --git a/src/ship.rs b/src/ship.rs index 228ec9a..43e660e 100644 --- a/src/ship.rs +++ b/src/ship.rs @@ -78,7 +78,7 @@ impl Ship { } } - pub async fn download(&self, target: Star) -> Result<(), Error> { + pub async fn download(&self, target: &Star) -> Result<(), Error> { let mut output: Output; -- cgit v1.2.3