mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:47:35 +00:00
LibCore: Use ErrorOr<T> for Core::get_password()
This commit is contained in:
parent
801d46d02c
commit
e76b21a66f
3 changed files with 11 additions and 13 deletions
|
@ -6,13 +6,11 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/OSError.h>
|
||||
#include <AK/Result.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/Error.h>
|
||||
#include <LibCore/SecretString.h>
|
||||
|
||||
namespace Core {
|
||||
|
||||
Result<SecretString, OSError> get_password(const StringView& prompt = "Password: "sv);
|
||||
ErrorOr<SecretString> get_password(StringView prompt = "Password: "sv);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue