Skip to content

Commit

Permalink
fix: lints
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbchron committed Feb 19, 2024
1 parent 75305ec commit ba93551
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions crates/artifact/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ impl Artifact for PublicArtifact {
}
}
async fn download(&mut self) -> Result<()> {
let object_store = Box::new(|| Self::object_store());
let object_store = Box::new(Self::object_store);
self.contents =
Some(download_artifact(object_store, &self.id.0.to_string()).await?);

Ok(())
}
async fn upload(&self) -> Result<()> {
let object_store = Box::new(|| Self::object_store());
let object_store = Box::new(Self::object_store);
upload_artifact(
object_store,
&self.id.0.to_string(),
Expand Down Expand Up @@ -140,14 +140,14 @@ impl Artifact for PrivateArtifact {
Self { id, contents }
}
async fn download(&mut self) -> Result<()> {
let object_store = Box::new(|| Self::object_store());
let object_store = Box::new(Self::object_store);
self.contents =
Some(download_artifact(object_store, &self.id.0.to_string()).await?);

Ok(())
}
async fn upload(&self) -> Result<()> {
let object_store = Box::new(|| Self::object_store());
let object_store = Box::new(Self::object_store);
upload_artifact(
object_store,
&self.id.0.to_string(),
Expand Down
2 changes: 1 addition & 1 deletion crates/site-app/src/components/photo_upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub fn PhotoUpload() -> impl IntoView {
<div class="d-form-control">
<button
type="submit" class="d-btn d-btn-primary w-full"
disabled={move || pending()}
disabled=pending
>
{ move || if pending() { view!{ <span class="d-loading d-loading-spinner" /> }.into_view() } else { view! {}.into_view() } }
"Upload"
Expand Down

0 comments on commit ba93551

Please sign in to comment.