Skip to content

Commit

Permalink
feat: Add #[must_use] attribute to new method.
Browse files Browse the repository at this point in the history
  • Loading branch information
KirilMihaylov committed Dec 12, 2024
1 parent 8cb578a commit 185a682
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions services/market-data-feeder/src/task/id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ pub struct Id {
}

impl Id {
#[must_use]
pub const fn new(protocol: Arc<str>) -> Self {
Self { protocol }
}
Expand Down

0 comments on commit 185a682

Please sign in to comment.