Skip to content

Commit

Permalink
[#43] MR
Browse files Browse the repository at this point in the history
  • Loading branch information
Orchaldir committed Oct 28, 2023
1 parent 1e873d9 commit 984e2ee
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions macro_ui/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ pub fn get_option_type(field: &Field) -> Option<Ident> {
if let Some(segment) = type_path.path.segments.first() {
return match &segment.arguments {
PathArguments::AngleBracketed(args) => {
if let Some(GenericArgument::Type(t)) = args.args.first() {
if let Type::Path(type_path) = t {
return type_path.path.segments.first().map(|s| s.ident.clone());
}
if let Some(GenericArgument::Type(Type::Path(type_path))) =
args.args.first()
{
return type_path.path.segments.first().map(|s| s.ident.clone());
}
None
}
Expand Down
4 changes: 2 additions & 2 deletions rpg_tools_core/src/ui/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ impl UiVisitor for EditorVisitor {
self.add_named_selection(
&format!("{} Availability", self.get_pretty_name()),
&format!("{}.availability", self.get_path()),
&vec!["true".to_string(), "false".to_string()],
&["true".to_string(), "false".to_string()],
"\"true\"",
);
let name = self.get_name();
Expand All @@ -124,7 +124,7 @@ impl UiVisitor for EditorVisitor {
self.add_named_selection(
&format!("{} Availability", self.get_pretty_name()),
&format!("{}.availability", self.get_path()),
&vec!["true".to_string(), "false".to_string()],
&["true".to_string(), "false".to_string()],
"\"false\"",
);
self.lines.push(format!("{}{{% endif %}}", self.spaces));
Expand Down
2 changes: 1 addition & 1 deletion rpg_tools_rendering/src/rendering/equipment/footwear.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ fn render_shaft(
builder.add_horizontal_pair(aabb, width, center_x, y_end, true);
let polygon = builder.build();

renderer.render_polygon(&polygon, &options);
renderer.render_polygon(&polygon, options);
}

fn render_soles(
Expand Down

0 comments on commit 984e2ee

Please sign in to comment.