Use consistent spacing before line comments
This commit is contained in:
parent
1cce98b133
commit
1901471de1
|
@ -118,7 +118,7 @@ pub enum DataStoreError {
|
|||
#[derive(Error, Debug)]
|
||||
pub struct MyError {
|
||||
msg: String,
|
||||
#[source] // optional if field name is `source`
|
||||
#[source] // optional if field name is `source`
|
||||
source: anyhow::Error,
|
||||
}
|
||||
```
|
||||
|
@ -132,7 +132,7 @@ pub enum DataStoreError {
|
|||
#[derive(Error, Debug)]
|
||||
pub struct MyError {
|
||||
msg: String,
|
||||
backtrace: Backtrace, // automatically detected
|
||||
backtrace: Backtrace, // automatically detected
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -126,7 +126,7 @@
|
|||
//! #[derive(Error, Debug)]
|
||||
//! pub struct MyError {
|
||||
//! msg: String,
|
||||
//! #[source] // optional if field name is `source`
|
||||
//! #[source] // optional if field name is `source`
|
||||
//! source: anyhow::Error,
|
||||
//! }
|
||||
//! #
|
||||
|
@ -147,7 +147,7 @@
|
|||
//! #[derive(Error, Debug)]
|
||||
//! pub struct MyError {
|
||||
//! msg: String,
|
||||
//! backtrace: Backtrace, // automatically detected
|
||||
//! backtrace: Backtrace, // automatically detected
|
||||
//! }
|
||||
//! # };
|
||||
//! ```
|
||||
|
|
Loading…
Reference in New Issue