Skip to content

Commit 02d86a9

Browse files
committed
Fmt
1 parent e89f1da commit 02d86a9

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

rfd-github/src/lib.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
44

55
use std::{
6-
borrow::Cow, collections::HashMap, fmt::Debug, future::Future, pin::Pin, str::{from_utf8, Utf8Error}
6+
borrow::Cow,
7+
collections::HashMap,
8+
fmt::Debug,
9+
future::Future,
10+
pin::Pin,
11+
str::{from_utf8, Utf8Error},
712
};
813

914
use base64::{prelude::BASE64_STANDARD, DecodeError, Engine};
@@ -70,7 +75,7 @@ impl GitHubRfdRepo {
7075
owner: String,
7176
repo: String,
7277
path: String,
73-
default_branch: String
78+
default_branch: String,
7479
) -> Result<Self, GitHubError> {
7580
Ok(Self {
7681
client: client.clone(),

rfd-processor/src/content/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ use std::{borrow::Cow, env, io, path::PathBuf, str::Utf8Error, string::FromUtf8E
77
use async_trait::async_trait;
88
use base64::DecodeError;
99
use octorust::Client;
10-
use rfd_github::{GitHubError, GitHubRfdLocation};
1110
use rfd_data::{
1211
content::{RfdAsciidoc, RfdContent, RfdDocument, RfdMarkdown},
1312
RfdNumber,
1413
};
14+
use rfd_github::{GitHubError, GitHubRfdLocation};
1515
use rfd_model::schema_ext::ContentFormat;
1616
use tap::TapFallible;
1717
use thiserror::Error;

rfd-processor/src/processor.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ use thiserror::Error;
1111
use tokio::time::interval;
1212
use tracing::Instrument;
1313

14-
use crate::{
15-
context::Context,
16-
updater::RfdUpdater,
17-
};
14+
use crate::{context::Context, updater::RfdUpdater};
1815

1916
#[derive(Debug, Error)]
2017
pub enum JobError {

rfd-processor/src/updater/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,7 @@ impl<'a> RfdUpdater<'a> {
256256
// Update the file in GitHub.
257257
update
258258
.location
259-
.upsert(
260-
&new.number,
261-
new.content().raw().as_bytes(),
262-
)
259+
.upsert(&new.number, new.content().raw().as_bytes())
263260
.await
264261
.map_err(RfdUpdaterError::GitHubStorage)?;
265262
}

0 commit comments

Comments
 (0)