Skip to content

Commit

Permalink
style(xray-lite): fix clippy error
Browse files Browse the repository at this point in the history
Removes unnecessary `main` function from a doctest.
  • Loading branch information
kikuomax committed Mar 25, 2024
1 parent baff765 commit 140d334
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions xray-lite/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,10 @@ where
/// SubsegmentContext,
/// };
///
/// fn main() {
/// let client = DaemonClient::from_lambda_env().into_infallible();
/// # std::env::set_var("_X_AMZN_TRACE_ID", "Root=1-5759e988-bd862e3fe1be46a994272793;Parent=53995c3f42cd8ad8;Sampled=1");
/// let context = SubsegmentContext::from_lambda_env(client).unwrap();
/// let _session = context.enter_subsegment(CustomNamespace::new("readme.example"));
/// }
/// let client = DaemonClient::from_lambda_env().into_infallible();
/// # std::env::set_var("_X_AMZN_TRACE_ID", "Root=1-5759e988-bd862e3fe1be46a994272793;Parent=53995c3f42cd8ad8;Sampled=1");
/// let context = SubsegmentContext::from_lambda_env(client).unwrap();
/// let _session = context.enter_subsegment(CustomNamespace::new("readme.example"));
/// ```
pub trait IntoInfallibleClient {
/// Client type.
Expand Down

0 comments on commit 140d334

Please sign in to comment.