Skip to content

Commit 67b2f96

Browse files
committed
nits
1 parent c31eef6 commit 67b2f96

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/datadog/optional.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ auto value_or(Value&& value) {
5757

5858
template <typename Value, typename... Rest>
5959
auto value_or(Optional<Value> maybe, Rest&&... rest) {
60-
return maybe.value_or(value_or(rest...));
60+
return maybe.value_or(value_or(std::forward<Rest>(rest)...));
6161
}
6262

6363
} // namespace tracing

src/datadog/tracer_config.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ Optional<PropagationStyles> styles_from_env(environment::Variable env_var) {
145145
std::string json_quoted(StringView text) {
146146
std::string unquoted;
147147
assign(unquoted, text);
148-
return nlohmann::json(unquoted).dump();
148+
return nlohmann::json(std::move(unquoted)).dump();
149149
}
150150

151151
Expected<void> finalize_propagation_styles(FinalizedTracerConfig &result,

0 commit comments

Comments
 (0)