Skip to content

Commit

Permalink
manually fix last few lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Lamby777 committed Aug 20, 2024
1 parent 21f6a51 commit c49153e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pets-lib/src/battle/midi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ impl BattleTrack {
///
/// # Memory Leak
/// See [`BattleTrack::from_godot_path`] docs for more information.
pub fn new_from_name<'a>(track_name: &str) -> BattleTrack {
pub fn new_from_name(track_name: &str) -> BattleTrack {
let path = format!("res://assets/music/battle/{}.mid", track_name);
let Smf { header, tracks } = Self::from_godot_path(&path);

Expand Down
6 changes: 3 additions & 3 deletions pets-lib/src/battle/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
//! Player icon that moves around n shit during battles
//!
use std::cell::LazyCell;
use std::sync::LazyLock;

use godot::classes::{CharacterBody2D, ICharacterBody2D, Sprite2D};
use godot::prelude::*;

use super::stat_translation;
use crate::common::*;

const BATTLE_DIRECTIONS: LazyCell<[(StringName, Vector2); 4]> =
LazyCell::new(|| {
static BATTLE_DIRECTIONS: LazyLock<[(StringName, Vector2); 4]> =
LazyLock::new(|| {
[
("battle_move_up".into(), Vector2::UP),
("battle_move_down".into(), Vector2::DOWN),
Expand Down

0 comments on commit c49153e

Please sign in to comment.