Skip to content

Commit

Permalink
Fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
augustuswm committed Apr 12, 2024
1 parent e89f1da commit 02d86a9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
9 changes: 7 additions & 2 deletions rfd-github/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

use std::{
borrow::Cow, collections::HashMap, fmt::Debug, future::Future, pin::Pin, str::{from_utf8, Utf8Error}
borrow::Cow,
collections::HashMap,
fmt::Debug,
future::Future,
pin::Pin,
str::{from_utf8, Utf8Error},
};

use base64::{prelude::BASE64_STANDARD, DecodeError, Engine};
Expand Down Expand Up @@ -70,7 +75,7 @@ impl GitHubRfdRepo {
owner: String,
repo: String,
path: String,
default_branch: String
default_branch: String,
) -> Result<Self, GitHubError> {
Ok(Self {
client: client.clone(),
Expand Down
2 changes: 1 addition & 1 deletion rfd-processor/src/content/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ use std::{borrow::Cow, env, io, path::PathBuf, str::Utf8Error, string::FromUtf8E
use async_trait::async_trait;
use base64::DecodeError;
use octorust::Client;
use rfd_github::{GitHubError, GitHubRfdLocation};
use rfd_data::{
content::{RfdAsciidoc, RfdContent, RfdDocument, RfdMarkdown},
RfdNumber,
};
use rfd_github::{GitHubError, GitHubRfdLocation};
use rfd_model::schema_ext::ContentFormat;
use tap::TapFallible;
use thiserror::Error;
Expand Down
5 changes: 1 addition & 4 deletions rfd-processor/src/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ use thiserror::Error;
use tokio::time::interval;
use tracing::Instrument;

use crate::{
context::Context,
updater::RfdUpdater,
};
use crate::{context::Context, updater::RfdUpdater};

#[derive(Debug, Error)]
pub enum JobError {
Expand Down
5 changes: 1 addition & 4 deletions rfd-processor/src/updater/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,7 @@ impl<'a> RfdUpdater<'a> {
// Update the file in GitHub.
update
.location
.upsert(
&new.number,
new.content().raw().as_bytes(),
)
.upsert(&new.number, new.content().raw().as_bytes())
.await
.map_err(RfdUpdaterError::GitHubStorage)?;
}
Expand Down

0 comments on commit 02d86a9

Please sign in to comment.