Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ci: cargo fmt #343

Merged
merged 4 commits into from
Apr 17, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: cargo fmt
- run: git diff --exit-code
- run: cargo clippy
4 changes: 2 additions & 2 deletions src/api/orgs.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
//! The Organization API.

mod events;
mod list_members;
mod list_repos;
mod events;

use crate::error::HttpSnafu;
use crate::Octocrab;
use http::Uri;
use snafu::ResultExt;

pub use self::events::ListOrgEventsBuilder;
pub use self::list_members::ListOrgMembersBuilder;
pub use self::list_repos::ListReposBuilder;
pub use self::events::ListOrgEventsBuilder;

/// A client to GitHub's organization API.
///
Expand Down
5 changes: 1 addition & 4 deletions src/api/orgs/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,7 @@ impl<'octo, 'handler> ListOrgEventsBuilder<'octo, 'handler> {

/// Sends the actual request.
pub async fn send(self) -> crate::Result<Etagged<Page<events::Event>>> {
let route = format!(
"/orgs/{owner}/events",
owner = self.handler.owner
);
let route = format!("/orgs/{owner}/events", owner = self.handler.owner);

let uri = self
.handler
Expand Down