-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: tison <[email protected]>
- Loading branch information
Showing
2 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,7 +67,7 @@ pub struct Metadata { | |
/// The URL of the crate's website | ||
pub homepage: MaybeString, | ||
/// The support information | ||
pub supports: MaybeString, | ||
pub support: MaybeString, | ||
} | ||
|
||
/// Initialize [`Metadata`]. | ||
|
@@ -79,7 +79,7 @@ macro_rules! metadata { | |
name: env!("CARGO_PKG_NAME").into(), | ||
authors: Some(env!("CARGO_PKG_AUTHORS").replace(":", ", ").into()), | ||
homepage: None, | ||
supports: None, | ||
support: None, | ||
} | ||
}}; | ||
} | ||
|
@@ -102,7 +102,7 @@ macro_rules! metadata { | |
/// let mut metadata = metadata!(); | ||
/// metadata.authors = Some("My Company Support <[email protected]>".into()); | ||
/// metadata.homepage = Some("www.mycompany.com".into()); | ||
/// metadata.supports = Some("- Open a support request by email to [email protected]".into()); | ||
/// metadata.support = Some("- Open a support request by email to [email protected]".into()); | ||
/// setup_panic!(metadata); | ||
/// ``` | ||
#[macro_export] | ||
|
@@ -188,7 +188,7 @@ fn write_msg<P: AsRef<Path>>( | |
name, | ||
authors, | ||
homepage, | ||
supports, | ||
support, | ||
.. | ||
} = meta; | ||
|
||
|
@@ -216,8 +216,8 @@ fn write_msg<P: AsRef<Path>>( | |
if let Some(authors) = authors { | ||
writeln!(buffer, "- Authors: {authors}")?; | ||
} | ||
if let Some(supports) = supports { | ||
writeln!(buffer, "\nTo submit the crash report:\n\n{supports}")?; | ||
if let Some(support) = support { | ||
writeln!(buffer, "\nTo submit the crash report:\n\n{support}")?; | ||
} | ||
writeln!( | ||
buffer, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ fn main() { | |
metadata.version = env!("CARGO_PKG_VERSION").into(); | ||
metadata.authors = Some("My Company Support <[email protected]".into()); | ||
metadata.homepage = Some("www.mycompany.com".into()); | ||
metadata.supports = Some("- Open a support request by email to [email protected]".into()); | ||
metadata.support = Some("- Open a support request by email to [email protected]".into()); | ||
setup_panic!(metadata); | ||
|
||
println!("A normal log message"); | ||
|