Skip to content

Commit

Permalink
change: remove unnecessary 'static lifetime on allocation name
Browse files Browse the repository at this point in the history
  • Loading branch information
NotAPenguin0 committed Jul 22, 2023
1 parent e0eb0cd commit 6a1b3b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/allocator/default_allocator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ impl Allocator for DefaultAllocator {
/// ```
fn allocate(
&mut self,
name: &'static str,
name: &str,
requirements: &MemoryRequirements,
ty: MemoryType,
) -> Result<Self::Allocation> {
Expand Down
2 changes: 1 addition & 1 deletion src/allocator/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub trait Allocator: Clone + Send + Sync {
/// ```
fn allocate(
&mut self,
name: &'static str,
name: &str,
requirements: &vk::MemoryRequirements,
ty: MemoryType,
) -> Result<Self::Allocation>;
Expand Down

0 comments on commit 6a1b3b1

Please sign in to comment.