Skip to content

Commit

Permalink
Fix testing
Browse files Browse the repository at this point in the history
  • Loading branch information
enaut committed Sep 11, 2024
1 parent 77e1b06 commit c045512
Show file tree
Hide file tree
Showing 3 changed files with 133 additions and 108 deletions.
15 changes: 1 addition & 14 deletions app/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,27 +297,14 @@ pub struct Urls<'a> {

impl<'a> Urls<'a> {
/// Create a new `Urls` instance.
///
/// # Example
///
/// ```rust,no_run
/// Urls::new(base_url).home()
/// ```
pub fn new(base_url: impl Into<std::borrow::Cow<'a, Url>>) -> Self {
Self {
base_url: base_url.into(),
}
}

/// Return base `Url`. If `base_url` isn't owned, it will be cloned.
///
/// # Example
///
/// ```rust,no_run
/// pub fn admin_urls(self) -> page::admin::Urls<'a> {
/// page::admin::Urls::new(self.base_url().add_path_part(ADMIN))
/// }
/// ```
#[must_use]
pub fn base_url(self) -> Url {
self.base_url.into_owned()
Expand Down
13 changes: 7 additions & 6 deletions pslink/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,22 @@ clap = { version = "4", features = [
dotenv = "0.15.0"
fluent-langneg = "0.14"
image = "0.25"
opentelemetry = { version = "0.24" }
opentelemetry_sdk = { version = "0.24", features = ["rt-tokio-current-thread"] }
opentelemetry = { version = "0.25" }
opentelemetry_sdk = { version = "0.25", features = ["rt-tokio-current-thread"] }
opentelemetry-jaeger = "0.22"
opentelemetry-otlp = "0.17"
opentelemetry-semantic-conventions = "0.16"
opentelemetry-otlp = "0.25"
opentelemetry-semantic-conventions = "0.25"
qrcode = "0.14"
rand = "0.8"
rpassword = "7.3"
serde = "1.0"
thiserror = "1.0"
tracing-actix-web = "0.7"
tracing-bunyan-formatter = "0.3.0"
tracing-opentelemetry = "0.25"
tracing-opentelemetry = "0.26"
async-trait = "0.1"
enum-map = { version = "2", features = ["serde"] }
reqwest = { version = "0.12.7", features = ["rustls-tls"] }
reqwest = { version = "0.12.7", features = ["rustls-tls", "json"] }
reqwest_cookie_store = "0.8"
shared = { path = "../shared" }

Expand Down Expand Up @@ -82,6 +82,7 @@ actix-server = "2"
tempdir = "0.3"
test_bin = "0.4"
tokio = "1"
serde_json = "1.0"

[dev-dependencies.reqwest]
features = ["cookies"]
Expand Down
Loading

0 comments on commit c045512

Please sign in to comment.