aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCara Salter <cara@devcara.com>2022-06-10 10:40:18 -0400
committerCara Salter <cara@devcara.com>2022-06-10 10:40:18 -0400
commit0c7afe3bd5197363c5df9560cca9ed5608dd58bf (patch)
tree77f8f73f7a19a4fbbb11b85dc83f2da0e8938b04
parent0449d7b38617933482f65d23cb8785b68466b82c (diff)
downloadsolarlib-0c7afe3bd5197363c5df9560cca9ed5608dd58bf.tar.gz
solarlib-0c7afe3bd5197363c5df9560cca9ed5608dd58bf.zip
ship: Make Star a borrow
-rw-r--r--src/ship.rs2
1 files changed, 1 insertions, 1 deletions
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;