Skip to content

Commit

Permalink
ToString -> Into<String>
Browse files Browse the repository at this point in the history
  • Loading branch information
tompro committed Feb 18, 2024
1 parent c72517a commit f1ac6e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kernel/src/namedobj/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ pub struct NamedObj {
}

impl NamedObj {
pub fn new(name: impl ToString, data: usize) -> Self {
pub fn new(name: impl Into<String>, data: usize) -> Self {
Self {
name: name.to_string(),
name: name.into(),
data,
}
}
Expand Down

0 comments on commit f1ac6e1

Please sign in to comment.