diff --git a/rfd-github/src/lib.rs b/rfd-github/src/lib.rs index bb3cd290..cc7dcca3 100644 --- a/rfd-github/src/lib.rs +++ b/rfd-github/src/lib.rs @@ -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}; @@ -70,7 +75,7 @@ impl GitHubRfdRepo { owner: String, repo: String, path: String, - default_branch: String + default_branch: String, ) -> Result { Ok(Self { client: client.clone(), diff --git a/rfd-processor/src/content/mod.rs b/rfd-processor/src/content/mod.rs index 3c037cc6..e8120372 100644 --- a/rfd-processor/src/content/mod.rs +++ b/rfd-processor/src/content/mod.rs @@ -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; diff --git a/rfd-processor/src/processor.rs b/rfd-processor/src/processor.rs index 2188a0be..458e92a3 100644 --- a/rfd-processor/src/processor.rs +++ b/rfd-processor/src/processor.rs @@ -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 { diff --git a/rfd-processor/src/updater/mod.rs b/rfd-processor/src/updater/mod.rs index fa53b7fa..0fef96f6 100644 --- a/rfd-processor/src/updater/mod.rs +++ b/rfd-processor/src/updater/mod.rs @@ -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)?; }