Skip to content

Commit

Permalink
Merge branch 'master' into column-type-blob
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 committed May 3, 2024
2 parents 819a63c + 372f9c6 commit eb7d967
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/mysql/parser/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub fn parse_version_string(string: &str) -> SystemInfo {
if i == 0 {
system.version = parse_version_number(part);
} else if i == 1 {
system.system = part.to_owned();
system.system = part.to_string();
} else {
system.suffix.push(part.to_owned());
}
Expand Down
4 changes: 2 additions & 2 deletions src/postgres/parser/column.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ pub fn parse_interval_attributes(
) -> ColumnType {
match ctype {
Type::Interval(ref mut attr) => {
attr.field = interval_type.clone();
attr.field.clone_from(interval_type);
attr.precision = match interval_precision {
None => None,
Some(num) => match u16::try_from(num) {
Expand Down Expand Up @@ -203,7 +203,7 @@ pub fn parse_enum_attributes(
Some(typename) => typename.to_string(),
};
if let Some(variants) = enums.get(&def.typename) {
def.values = variants.clone()
def.values.clone_from(variants);
}
}
_ => panic!("parse_enum_attributes(_) received a type that does not have EnumDef"),
Expand Down

0 comments on commit eb7d967

Please sign in to comment.