BAN: Allow String::formatted to fail

This commit is contained in:
2024-06-25 09:48:13 +03:00
parent b1869bced4
commit 67dfe0bcf3
10 changed files with 25 additions and 22 deletions

View File

@@ -12,7 +12,7 @@ namespace Kernel::Input
PS2Device::PS2Device(PS2Controller& controller)
: CharacterDevice(0440, 0, 901)
, m_rdev(makedev(DeviceNumber::Input, DevFileSystem::get().get_next_input_device()))
, m_name(BAN::String::formatted("input{}", minor(m_rdev)))
, m_name(MUST(BAN::String::formatted("input{}", minor(m_rdev))))
, m_controller(controller)
{ }