better method name

i guess "from" implies it is converting one thing to another, but that
is not what this method was doing really.
This commit is contained in:
Gered 2022-07-10 13:18:59 -04:00
parent cbfd66d42e
commit 253e70463e
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ pub struct AudioQueue {
}
impl AudioQueue {
pub fn from(audio: &Audio) -> Self {
pub fn new(audio: &Audio) -> Self {
AudioQueue {
spec: audio.spec,
commands: VecDeque::new(),

View file

@ -252,7 +252,7 @@ impl SystemBuilder {
};
let mut audio = Audio::new(audio_spec, &sdl_audio_subsystem)?;
audio.resume();
let audio_queue = AudioQueue::from(&audio);
let audio_queue = AudioQueue::new(&audio);
// create input device objects, exposed to the application