Skip to content

Commit 799351f

Browse files
committed
sentry - application - fix docs
1 parent 86b5be8 commit 799351f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sentry/src/application.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ use hyper::{Body, Method, Request, Response};
3030
use redis::aio::MultiplexedConnection;
3131
use slog::Logger;
3232

33-
/// an error used when deserializing a [`Config`] instance from environment variables
34-
/// see [`Config::from_env()`]
33+
/// an error used when deserializing a [`EnvConfig`] instance from environment variables
34+
/// see [`EnvConfig::from_env()`]
3535
pub use envy::Error as EnvError;
3636

3737
pub const DEFAULT_PORT: u16 = 8005;
@@ -58,13 +58,13 @@ pub struct EnvConfig {
5858
/// Defaults to `0.0.0.0`: [`DEFAULT_IP_ADDR`]
5959
#[serde(default = "default_ip_addr")]
6060
pub ip_addr: IpAddr,
61-
#[serde(deserialize_with = "redis_url", default = "default_redis_url")]
6261
/// Defaults to locally running Redis server: [`DEFAULT_REDIS_URL`]
62+
#[serde(deserialize_with = "redis_url", default = "default_redis_url")]
6363
pub redis_url: ConnectionInfo,
6464
}
6565

6666
impl EnvConfig {
67-
/// Deserialize the application [`Config`] from Environment variables.
67+
/// Deserialize the application [`EnvConfig`] from Environment variables.
6868
pub fn from_env() -> Result<Self, EnvError> {
6969
envy::from_env()
7070
}

0 commit comments

Comments
 (0)