Skip to content

Commit

Permalink
fix: clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zyy17 committed May 11, 2024
1 parent a0d28a3 commit 56a1842
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/cmd/src/datanode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ impl StartCommand {
self.config_file.as_deref(),
self.env_prefix.as_ref(),
)
.map_err(Box::new)
.context(LoadLayeredConfigSnafu)?,
)?,
)))
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ pub enum Error {
#[snafu(display("Failed to load layered config"))]
LoadLayeredConfig {
#[snafu(source)]
source: common_config::error::Error,
source: Box<common_config::error::Error>,
#[snafu(implicit)]
location: Location,
},
Expand Down
1 change: 1 addition & 0 deletions src/cmd/src/frontend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ impl StartCommand {
self.config_file.as_deref(),
self.env_prefix.as_ref(),
)
.map_err(Box::new)
.context(LoadLayeredConfigSnafu)?,
)?,
)))
Expand Down
1 change: 1 addition & 0 deletions src/cmd/src/metasrv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ impl StartCommand {
self.config_file.as_deref(),
self.env_prefix.as_ref(),
)
.map_err(Box::new)
.context(LoadLayeredConfigSnafu)?,
)?,
)))
Expand Down
1 change: 1 addition & 0 deletions src/cmd/src/standalone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ impl StartCommand {
self.config_file.as_deref(),
self.env_prefix.as_ref(),
)
.map_err(Box::new)
.context(LoadLayeredConfigSnafu)?,
)?,
)))
Expand Down

0 comments on commit 56a1842

Please sign in to comment.