mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-02 06:42:02 +00:00
[ty] Add --config CLI arg (#17697)
This commit is contained in:
parent
6c177e2bbe
commit
f46ed8d410
3 changed files with 186 additions and 4 deletions
|
@ -38,7 +38,7 @@ pub struct Options {
|
|||
}
|
||||
|
||||
impl Options {
|
||||
pub(crate) fn from_toml_str(content: &str, source: ValueSource) -> Result<Self, TyTomlError> {
|
||||
pub fn from_toml_str(content: &str, source: ValueSource) -> Result<Self, TyTomlError> {
|
||||
let _guard = ValueSourceGuard::new(source, true);
|
||||
let options = toml::from_str(content)?;
|
||||
Ok(options)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue