Skip to content

Commit 05f3673

Browse files
committed
clippy fix
1 parent 359d9e4 commit 05f3673

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

helix-db/src/helixc/analyzer/utils.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -175,16 +175,16 @@ pub(super) fn validate_embed_string_type(
175175
}
176176

177177
// Check if it's a scope variable
178-
if let Some(var_info) = scope.get(identifier_name) {
179-
if var_info.ty != Type::Scalar(FieldType::String) {
180-
generate_error!(
181-
ctx,
182-
original_query,
183-
loc,
184-
E660,
185-
&var_info.ty.to_string()
186-
);
187-
}
178+
if let Some(var_info) = scope.get(identifier_name)
179+
&& var_info.ty != Type::Scalar(FieldType::String)
180+
{
181+
generate_error!(
182+
ctx,
183+
original_query,
184+
loc,
185+
E660,
186+
&var_info.ty.to_string()
187+
);
188188
}
189189
}
190190

helix-db/src/protocol/date.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ impl Date {
7474
}
7575
}
7676

77-
pub fn from_str(value: String) -> Result<Self, DateError> {
77+
pub fn parse_from_string(value: String) -> Result<Self, DateError> {
7878
let date = match value.parse::<DateTime<Utc>>() {
7979
Ok(date) => date.with_timezone(&Utc),
8080
Err(e) => match value.parse::<NaiveDate>() {

0 commit comments

Comments
 (0)