Skip to content

Commit

Permalink
fix: items after a test module lint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wangeguo committed Jan 2, 2024
1 parent 60110a3 commit aa7b0df
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "amp-client"
description = "The Amphitheatre API client for Rust"
version = "0.6.0"
version = "0.6.1"
edition = "2021"
license = "Apache-2.0"
homepage = "https://amphitheatre.app"
Expand Down
24 changes: 12 additions & 12 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,6 @@ impl Client {
}
}

#[cfg(test)]
mod tests {
use crate::client::Client;
const BASE_URL: &str = "https://cloud.amphitheatre.app";

#[test]
fn creates_a_client() {
let token = Some("some-auth-token".to_string());
let _client = Client::new(BASE_URL, token);
}
}

impl Client {
/// Returns the `accounts` services attached to this client
pub fn accounts(&self) -> Accounts {
Expand All @@ -95,3 +83,15 @@ impl Client {
Playbooks { client: &self.client }
}
}

#[cfg(test)]
mod tests {
use crate::client::Client;
const BASE_URL: &str = "https://cloud.amphitheatre.app";

#[test]
fn creates_a_client() {
let token = Some("some-auth-token".to_string());
let _client = Client::new(BASE_URL, token);
}
}

0 comments on commit aa7b0df

Please sign in to comment.