Skip to content

Commit

Permalink
Add clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
adzialocha committed May 29, 2024
1 parent c5b81d2 commit 5516f82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
9 changes: 4 additions & 5 deletions aquadoggo/src/db/query/field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,15 @@ impl TryFrom<&str> for MetaField {
}
}

impl ToString for MetaField {
fn to_string(&self) -> String {
match self {
impl std::fmt::Display for MetaField {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.write_str(match self {
MetaField::DocumentId => "documentId",
MetaField::DocumentViewId => "viewId",
MetaField::Owner => "owner",
MetaField::Edited => "edited",
MetaField::Deleted => "deleted",
}
.to_string()
})
}
}

Expand Down
1 change: 1 addition & 0 deletions aquadoggo/src/materializer/tasks/blob.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ pub async fn blob_task(context: Context, input: TaskInput) -> TaskResult<TaskInp
let mut file = OpenOptions::new()
.write(true)
.create(true)
.truncate(true)
.open(&blob_view_path)
.await
.map_err(|err| {
Expand Down

0 comments on commit 5516f82

Please sign in to comment.