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 14, 2024
1 parent 7574105 commit a642c63
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 @@ -143,6 +143,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 @@ -163,6 +163,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 @@ -136,6 +136,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 @@ -295,6 +295,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 a642c63

Please sign in to comment.