Skip to content

Commit 6fbd92e

Browse files
authored
Update ActorContext (#5)
* AF-4032: Refactor * Update: ActorContext is_alive must be not mut
1 parent 0a6179d commit 6fbd92e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/uactor/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ license = "MIT"
77
readme = "../../README.md"
88
keywords = ["actor", "actor-system", "stream", "actor-stream", "spawn-process"]
99
workspace = "../../"
10-
description = "The fastest and most modular actor system that doesnt force you to pay for what you dont need"
10+
description = "The fastest and most modular actor system that doesn't force you to pay for what you don't need"
1111

1212
[dependencies]
1313
tokio = { workspace = true }

src/uactor/src/context.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub trait ActorContext: Sized + Unpin + 'static {
2222
fn kill(&mut self);
2323
fn get_name(&self) -> &str;
2424
#[allow(clippy::wrong_self_convention)]
25-
fn is_alive(&mut self) -> bool {
25+
fn is_alive(&self) -> bool {
2626
true
2727
}
2828
fn create(
@@ -54,7 +54,7 @@ impl ActorContext for Context {
5454
&self.name
5555
}
5656

57-
fn is_alive(&mut self) -> bool {
57+
fn is_alive(&self) -> bool {
5858
self.alive
5959
}
6060

@@ -100,7 +100,7 @@ pub mod supervised {
100100
&self.name
101101
}
102102

103-
fn is_alive(&mut self) -> bool {
103+
fn is_alive(&self) -> bool {
104104
self.alive
105105
}
106106

0 commit comments

Comments
 (0)