Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-Authored-By: Georg Brandl <georg@python.org>
  • Loading branch information
kngwyu and birkenfeld authored Mar 22, 2020
1 parent 9b5ea3f commit 5787128
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyo3-derive-backend/src/pyclass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ impl PyClassArgs {
syn::Expr::Path(exp) if exp.path.segments.len() == 1 => {
self.name = Some(exp.clone().into());
}
_ => expected!("single type path(e.g., Name)"),
_ => expected!("type name (e.g., Name)"),
},
"extends" => match &**right {
syn::Expr::Path(exp) => {
Expand All @@ -103,7 +103,7 @@ impl PyClassArgs {
};
self.has_extends = true;
}
_ => expected!("type path(e.g., my_mod::MyClass)"),
_ => expected!("type path (e.g., my_mod::MyClass)"),
},
"module" => match &**right {
syn::Expr::Lit(syn::ExprLit {
Expand All @@ -112,7 +112,7 @@ impl PyClassArgs {
}) => {
self.module = Some(lit.clone());
}
_ => expected!(r#"string literal(e.g., "mymod")"#),
_ => expected!(r#"string literal (e.g., "mymod")"#),
},
x => {
return Err(syn::Error::new_spanned(
Expand Down

0 comments on commit 5787128

Please sign in to comment.