Skip to content

Commit

Permalink
fix: generate Name::full_name properly (#923)
Browse files Browse the repository at this point in the history
  • Loading branch information
NBonaparte committed Sep 25, 2023
1 parent 9dd6553 commit 97cd4e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub trait Name: Message {
/// Full name of this message type containing both the package name and
/// type name, e.g. `google.protobuf.TypeName`.
fn full_name() -> String {
format!("{}.{}", Self::NAME, Self::PACKAGE)
format!("{}.{}", Self::PACKAGE, Self::NAME)
}

/// Type URL for this message, which by default is the full name with a
Expand Down

0 comments on commit 97cd4e2

Please sign in to comment.